Add visible field to schema for hiding entries from the UI. Use it to hide the no show dialog hashes

This commit is contained in:
Adam Honse committed 2026-09-17 20:39:33 -05:00
1 parent 0a201edbc1
commit 9a6cfaf021
4 files changed
+23

No files matched your search

+6
View File
@@ -280,6 +280,12 @@ ResourceManager::ResourceManager()
logmanager_settings_schema["file_count_limit"]["default"] = 10;
logmanager_settings_schema["file_count_limit"]["minimum"] = 0;
logmanager_settings_schema["dialog_no_show_hashes"]["title"] = QT_TRANSLATE_NOOP("Settings", "Dialog No-Show Hashes");
logmanager_settings_schema["dialog_no_show_hashes"]["type"] = "array";
logmanager_settings_schema["dialog_no_show_hashes"]["description"] = QT_TRANSLATE_NOOP("Settings", "A list of hashes of dialog text that should not be shown. Selecting \"Do Not Show Again\" on a dialog adds it to this list.");
logmanager_settings_schema["dialog_no_show_hashes"]["items"]["type"] = "integer";
logmanager_settings_schema["dialog_no_show_hashes"]["visible"] = false;
settings_manager->RegisterSettingsSchema("LogManager", QT_TRANSLATE_NOOP("Settings", "Log Manager"), logmanager_settings_schema);
/*-----------------------------------------------------*\