From a40ba2ff686525d5f151884e91ee5697543d7788 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Mon, 21 Mar 2022 12:19:00 +0300 Subject: [PATCH] minor correction for settings dialog --- app/ui/settings_dialog.glade | 4 ++-- app/ui/settings_dialog.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index 90510be0..8673c6e2 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -136,7 +136,7 @@ Author: Dmitriy Yefremov True - False + True center 15 15 @@ -3392,7 +3392,7 @@ Author: Dmitriy Yefremov Test - 110 + 120 True True True diff --git a/app/ui/settings_dialog.py b/app/ui/settings_dialog.py index aa233212..e1b7357c 100644 --- a/app/ui/settings_dialog.py +++ b/app/ui/settings_dialog.py @@ -309,7 +309,7 @@ class SettingsDialog: self._record_data_path_field.set_text(self._settings.records_path) self._before_save_switch.set_active(self._settings.backup_before_save) self._before_downloading_switch.set_active(self._settings.backup_before_downloading) - self._play_streams_combo_box.set_active(self._settings.play_streams_mode.value) + self._play_streams_combo_box.set_active_id(str(self._settings.play_streams_mode.value)) self._stream_lib_combo_box.set_active_id(self._settings.stream_lib) self._double_click_combo_box.set_active_id(str(self._settings.fav_click_mode)) self._allow_main_list_playback_switch.set_active(self._settings.main_list_playback) @@ -373,7 +373,7 @@ class SettingsDialog: self._ext_settings.profiles = self._settings.profiles self._ext_settings.backup_before_save = self._before_save_switch.get_active() self._ext_settings.backup_before_downloading = self._before_downloading_switch.get_active() - self._ext_settings.play_streams_mode = PlayStreamsMode(self._play_streams_combo_box.get_active()) + self._ext_settings.play_streams_mode = PlayStreamsMode(int(self._play_streams_combo_box.get_active_id())) self._ext_settings.stream_lib = self._stream_lib_combo_box.get_active_id() self._ext_settings.fav_click_mode = int(self._double_click_combo_box.get_active_id()) self._ext_settings.main_list_playback = self._allow_main_list_playback_switch.get_active()