From c3534052aed0361b8471b3837d7b57a1de6a8897 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Thu, 7 Jan 2021 11:10:12 +0300 Subject: [PATCH] removed bq position option --- app/ui/settings_dialog.glade | 154 ++++++++++++++--------------------- app/ui/settings_dialog.py | 4 - 2 files changed, 59 insertions(+), 99 deletions(-) diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index 4bdc8e3e..41d84144 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -2355,23 +2355,43 @@ Author: Dmitriy Yefremov in - True - False - 5 - 5 - 5 - 5 - vertical - 5 - - True False + 5 + 5 + 5 + 5 + vertical + 5 - + True False - Enable Dark Mode + + + True + False + Enable Dark Mode + + + False + True + 0 + + + + + True + True + + + + False + True + end + 1 + + False @@ -2380,99 +2400,43 @@ Author: Dmitriy Yefremov - - True - True - - - - False - True - end - 1 - - - - - False - True - 0 - - - - - True - False - Enables an alternate layout of the main window elements. - - + True False - Enable alternate layout + Enables an alternate layout of the main window elements. + + + True + False + Enable alternate layout + + + False + True + 0 + + + + + True + True + + + + False + True + end + 1 + + False True - 0 - - - - - True - True - - - - False - True - end 1 - - False - True - 1 - - - - - True - False - False - - - True - False - Display the bouquet channel list first - - - False - True - 0 - - - - - True - True - - - False - True - end - 1 - - - - - False - True - 2 - - - diff --git a/app/ui/settings_dialog.py b/app/ui/settings_dialog.py index a6400703..0ce52a03 100644 --- a/app/ui/settings_dialog.py +++ b/app/ui/settings_dialog.py @@ -184,8 +184,6 @@ class SettingsDialog: self._icon_theme_combo_box = builder.get_object("icon_theme_combo_box") self._dark_mode_switch = builder.get_object("dark_mode_switch") self._layout_switch = builder.get_object("layout_switch") - self._bq_list_switch = builder.get_object("bq_list_switch") - self._layout_switch.bind_property("active", builder.get_object("bouquet_box"), "sensitive") self._themes_support_switch = builder.get_object("themes_support_switch") self._themes_support_switch.bind_property("active", builder.get_object("gtk_theme_frame"), "sensitive") self._themes_support_switch.bind_property("active", builder.get_object("icon_theme_frame"), "sensitive") @@ -343,7 +341,6 @@ class SettingsDialog: if self._ext_settings.is_darwin: self._ext_settings.dark_mode = self._dark_mode_switch.get_active() self._ext_settings.alternate_layout = self._layout_switch.get_active() - self._ext_settings.bq_details_first = self._bq_list_switch.get_active() self._ext_settings.is_themes_support = self._themes_support_switch.get_active() self._ext_settings.theme = self._theme_combo_box.get_active_id() self._ext_settings.icon_theme = self._icon_theme_combo_box.get_active_id() @@ -758,7 +755,6 @@ class SettingsDialog: def init_appearance(self): self._dark_mode_switch.set_active(self._ext_settings.dark_mode) self._layout_switch.set_active(self._ext_settings.alternate_layout) - self._bq_list_switch.set_active(self._ext_settings.bq_details_first) t_support = self._ext_settings.is_themes_support self._themes_support_switch.set_active(t_support) if t_support: