diff --git a/app/settings.py b/app/settings.py index 8aac31b8..a4878de3 100644 --- a/app/settings.py +++ b/app/settings.py @@ -568,6 +568,15 @@ class Settings: def load_last_config(self, value): self._settings["load_last_config"] = value + @property + def show_bq_hints(self): + """ Show detailed info as hints in the bouquet list. """ + return self._settings.get("show_bq_hints", True) + + @show_bq_hints.setter + def show_bq_hints(self, value): + self._settings["show_bq_hints"] = value + @property def is_darwin(self): return IS_DARWIN diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index b08fcfc6..fc29e092 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -2145,6 +2145,63 @@ Author: Dmitriy Yefremov 1 + + + True + False + 5 + 5 + 5 + 5 + 0 + in + + + True + False + 5 + 5 + 5 + 5 + + + True + False + 5 + 5 + Show detailed info as hints in the bouquet list + + + False + True + 0 + + + + + True + True + center + + + False + True + end + 1 + + + + + + + + + + False + True + 2 + + True @@ -2279,7 +2336,7 @@ Author: Dmitriy Yefremov False True - 2 + 3 @@ -2361,7 +2418,7 @@ Author: Dmitriy Yefremov False True - 3 + 4 diff --git a/app/ui/settings_dialog.py b/app/ui/settings_dialog.py index c4532bf3..199b696e 100644 --- a/app/ui/settings_dialog.py +++ b/app/ui/settings_dialog.py @@ -128,6 +128,7 @@ class SettingsDialog: self._new_color_button = builder.get_object("new_color_button") self._extra_color_button = builder.get_object("extra_color_button") self._load_on_startup_switch = builder.get_object("load_on_startup_switch") + self._bouquet_hints_switch = builder.get_object("bouquet_hints_switch") # HTTP API self._support_http_api_switch = builder.get_object("support_http_api_switch") self._enable_y_dl_switch = builder.get_object("enable_y_dl_switch") @@ -251,6 +252,7 @@ class SettingsDialog: self.set_fav_click_mode(self._settings.fav_click_mode) self.set_play_stream_mode(self._settings.play_streams_mode) self._load_on_startup_switch.set_active(self._settings.load_last_config) + self._bouquet_hints_switch.set_active(self._settings.show_bq_hints) self._default_data_paths_switch.set_active(self._settings.profile_folder_is_default) self._transcoding_switch.set_active(self._settings.activate_transcoding) self._presets_combo_box.set_active_id(self._settings.active_preset) @@ -312,6 +314,7 @@ class SettingsDialog: self._ext_settings.play_streams_mode = self.get_play_stream_mode() self._ext_settings.language = self._lang_combo_box.get_active_id() self._ext_settings.load_last_config = self._load_on_startup_switch.get_active() + self._ext_settings.show_bq_hints = self._bouquet_hints_switch.get_active() self._ext_settings.profile_folder_is_default = self._default_data_paths_switch.get_active() self._ext_settings.default_data_path = self._default_data_dir_field.get_text() self._ext_settings.records_path = self._record_data_dir_field.get_text()