diff --git a/app/settings.py b/app/settings.py index ccbadb1f..28c1c78b 100644 --- a/app/settings.py +++ b/app/settings.py @@ -186,9 +186,7 @@ class Settings: @setting_type.setter def setting_type(self, s_type): - self._cp_settings["setting_type"] = s_type - for k, v in s_type.get_default_settings().items(): - self._cp_settings[k] = v + self._cp_settings["setting_type"] = s_type.value @property def language(self): diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index e8942154..61c21fc2 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -466,6 +466,70 @@ Author: Dmitriy Yefremov True False vertical + + + True + False + 5 + 5 + 5 + 0.019999999552965164 + in + + + True + False + center + center + 5 + 5 + + + Enigma2 + True + True + False + True + neutrino_radio_button + + + + False + True + 1 + + + + + Neutrino-MP + True + True + False + True + enigma_radio_button + + + False + True + 4 + + + + + + + True + False + Settings type: + + + + + False + True + 0 + + True @@ -960,7 +1024,7 @@ Author: Dmitriy Yefremov True True - 0 + 1 @@ -1087,7 +1151,7 @@ Author: Dmitriy Yefremov True True - 1 + 2 @@ -1206,7 +1270,7 @@ Author: Dmitriy Yefremov True True - 2 + 3 @@ -1292,94 +1356,6 @@ Author: Dmitriy Yefremov 0 - - - True - False - 5 - 5 - 5 - 5 - 0.019999999552965164 - in - - - True - False - 5 - 5 - 5 - 5 - - - True - False - Settings type: - - - False - True - 0 - - - - - True - False - center - center - 5 - - - Enigma2 - True - True - False - True - neutrino_radio_button - - - - False - True - 1 - - - - - Neutrino-MP - True - True - False - True - enigma_radio_button - - - False - True - 4 - - - - - False - True - end - 2 - - - - - - - - - - False - True - 1 - - True diff --git a/app/ui/settings_dialog.py b/app/ui/settings_dialog.py index 996056ad..3d5d1fc7 100644 --- a/app/ui/settings_dialog.py +++ b/app/ui/settings_dialog.py @@ -405,6 +405,10 @@ class SettingsDialog: if paths: profile = model.get_value(model.get_iter(paths), 0) self._settings.current_profile = profile + if self._settings.setting_type is SettingsType.ENIGMA_2: + self._enigma_radio_button.activate() + else: + self._neutrino_radio_button.activate() self.set_settings() def on_profile_set_default(self, item):