fix(cpn): topbar zones count and initialisation (#7147)
This commit is contained in:
@@ -268,3 +268,11 @@ class StatusDialog: public QDialog
|
||||
private:
|
||||
QLabel *msg;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
T rangeCheck(T value, T min, T max, T defaultValue) {
|
||||
if (value < min || value > max) {
|
||||
return defaultValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user