Set min and max for opening and closing duration to avoid errors (#26)

This commit is contained in:
J. Nick Koston 2023-07-01 09:35:05 -05:00 committed by GitHub
parent 1d7d1cbf57
commit 7843336b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ namespace ratgdo {
this->number_type_ = number_type_;
if (this->number_type_ == RATGDO_OPENING_DURATION || this->number_type_ == RATGDO_CLOSING_DURATION) {
this->traits.set_step(0.1);
this->traits.set_min_value(0.0);
this->traits.set_max_value(180.0);
}
}