Partially ported ff195fc9(Add max_literal to setting def, to set the threshold for popup warning for float% fields) from @SuperSlicer

(related to https://github.com/prusa3d/PrusaSlicer/issues/2829#issuecomment-955606863)
This commit is contained in:
YuSanka 2021-11-16 13:44:31 +01:00
parent cb44542377
commit 1aaa4845c5
3 changed files with 16 additions and 2 deletions

View file

@ -1764,6 +1764,8 @@ public:
// By setting min=0, only nonnegative input is allowed.
int min = INT_MIN;
int max = INT_MAX;
// To check if it's not a typo and a % is missing
double max_literal = 1;
ConfigOptionMode mode = comSimple;
// Legacy names for this configuration option.
// Used when parsing legacy configuration file.