Don't allow negative initial detection delay

This commit is contained in:
Adam Honse committed 2026-10-13 11:10:49 -05:00
1 parent eb86697032
commit 31485ce456
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -241,6 +241,7 @@ ResourceManager::ResourceManager()
detection_settings_schema["initial_detection_delay_ms"]["title"] = QT_TRANSLATE_NOOP("Settings", "Initial Detection Delay (ms)");
detection_settings_schema["initial_detection_delay_ms"]["type"] = "integer";
detection_settings_schema["initial_detection_delay_ms"]["description"] = QT_TRANSLATE_NOOP("Settings", "Amount of time, in milliseconds, to wait before detecting devices when started");
detection_settings_schema["initial_detection_delay_ms"]["minimum"] = 0;
settings_manager->RegisterSettingsSchemaIgnoreFilter("Detectors", QT_TRANSLATE_NOOP("Settings", "Detection"), detection_settings_schema);