fix(cpn): topbar zones count and initialisation (#7147)

This commit is contained in:
Neil Horne
2026-03-15 13:18:03 +10:00
committed by GitHub
parent cef0a87971
commit 8a9b52bd97
8 changed files with 89 additions and 9 deletions
+8
View File
@@ -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;
}