Default generic_mode to True; preserve explicit False

Set the default generic_mode to True in the config manager and update GUI initialization to distinguish between a missing config and an explicit False. Replace usages of `ConfigManager.get(... ) or False` with a None check so that an explicit False value is respected. Changes made in ytsage/utils/ytsage_config_manager.py and GUI initializers in ytsage/gui/ytsage_gui_main.py and ytsage/gui/ytsage_gui_dialogs/ytsage_dialogs_settings.py.
This commit is contained in:
oop7
2026-06-14 17:49:36 +03:00
parent d581754062
commit 45d3cdbad4
3 changed files with 7 additions and 3 deletions
@@ -255,7 +255,8 @@ class DownloadSettingsDialog(QDialog):
generic_mode_group_box = QGroupBox(_("settings.generic_mode"))
generic_mode_layout = QVBoxLayout()
self.generic_mode_enabled = ConfigManager.get("generic_mode") or False
generic_val = ConfigManager.get("generic_mode")
self.generic_mode_enabled = generic_val if generic_val is not None else True
self.generic_mode_checkbox = QCheckBox(_("settings.enable_generic_mode"))
self.generic_mode_checkbox.setChecked(self.generic_mode_enabled)