From 84a4cef5b588e29b8be32b38b67cd0f4bc5d66b8 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Fri, 22 Nov 2019 09:34:17 +0300 Subject: [PATCH] minor changes for the settings dialog --- app/ui/settings_dialog.glade | 167 +++++++++++++++++------------------ app/ui/settings_dialog.py | 6 +- 2 files changed, 86 insertions(+), 87 deletions(-) diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index 26c30245..9f2f65e1 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -312,6 +312,88 @@ Author: Dmitriy Yefremov 0 + + + True + False + + + True + False + center + settings_stack + + + False + True + 0 + + + + + True + False + + + + + + True + True + 1 + + + + + True + False + + + False + True + 2 + + + + + Test + 110 + True + True + True + Test connection + test_button_image + True + + + + False + True + end + 3 + + + + + True + False + + + + + + True + True + 4 + + + + + False + True + 1 + + True @@ -628,88 +710,6 @@ Author: Dmitriy Yefremov 1 - - - True - False - - - True - False - center - settings_stack - - - False - True - 0 - - - - - True - False - - - - - - True - True - 1 - - - - - True - False - - - False - True - 2 - - - - - Test - 110 - True - True - True - Test connection - test_button_image - True - - - - False - True - end - 3 - - - - - True - False - - - - - - True - True - 4 - - - - - False - True - 1 - - @@ -1232,7 +1232,7 @@ Author: Dmitriy Yefremov 0.019999999552965164 in - + True False 5 @@ -1279,7 +1279,6 @@ Author: Dmitriy Yefremov - True False False 5 diff --git a/app/ui/settings_dialog.py b/app/ui/settings_dialog.py index 8eefe987..6697e62d 100644 --- a/app/ui/settings_dialog.py +++ b/app/ui/settings_dialog.py @@ -88,6 +88,7 @@ class SettingsDialog: self._click_mode_zap_button.bind_property("sensitive", self._click_mode_play_button, "sensitive") self._click_mode_zap_button.bind_property("sensitive", self._enable_send_to_switch, "sensitive") self._enable_send_to_switch.bind_property("sensitive", builder.get_object("enable_send_to_label"), "sensitive") + self._extra_support_grid.bind_property("sensitive", builder.get_object("v5_support_grid"), "sensitive") # Options self._options = options self._active_profile = options.get("profile") @@ -102,9 +103,8 @@ class SettingsDialog: self._extra_support_grid.set_sensitive(is_enigma_profile) http_active = self._support_http_api_switch.get_active() self._click_mode_zap_button.set_sensitive(is_enigma_profile and http_active) - if not is_enigma_profile: - self.show_info_message("The Neutrino has only experimental support. Not all features are supported!", - Gtk.MessageType.WARNING) + self.on_info_bar_close() if is_enigma_profile else self.show_info_message( + "The Neutrino has only experimental support. Not all features are supported!", Gtk.MessageType.WARNING) def show(self): response = self._dialog.run()