Set min and max for opening and closing duration to avoid errors (#26)
This commit is contained in:
parent
1d7d1cbf57
commit
7843336b82
|
@ -41,6 +41,8 @@ namespace ratgdo {
|
||||||
this->number_type_ = number_type_;
|
this->number_type_ = number_type_;
|
||||||
if (this->number_type_ == RATGDO_OPENING_DURATION || this->number_type_ == RATGDO_CLOSING_DURATION) {
|
if (this->number_type_ == RATGDO_OPENING_DURATION || this->number_type_ == RATGDO_CLOSING_DURATION) {
|
||||||
this->traits.set_step(0.1);
|
this->traits.set_step(0.1);
|
||||||
|
this->traits.set_min_value(0.0);
|
||||||
|
this->traits.set_max_value(180.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue