Auto-correction of the input values according to the admissible range

This commit is contained in:
YuSanka 2018-05-10 11:10:44 +02:00
parent 8eb9ddc2eb
commit 754bfd926b
3 changed files with 20 additions and 9 deletions

View file

@ -111,7 +111,8 @@ PrintConfigDef::PrintConfigDef()
"with cooling (use a fan) before tweaking this.");
def->cli = "bridge-flow-ratio=f";
def->min = 0;
def->default_value = new ConfigOptionFloat(1);
def->max = 2;
def->default_value = new ConfigOptionFloat(1);
def = this->add("bridge_speed", coFloat);
def->label = L("Bridges");