From bf7dcdf1a7ecde18118569ca0b6abb96c6dea797 Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Thu, 7 Mar 2024 19:18:48 -0500 Subject: [PATCH] Run the sync setting change through on_setting_change. This way the settings-changed signal will fire, which I need for the notification bar. --- lutris/gui/config/accounts_box.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lutris/gui/config/accounts_box.py b/lutris/gui/config/accounts_box.py index 70c1cc4ef..92f7d3a6c 100644 --- a/lutris/gui/config/accounts_box.py +++ b/lutris/gui/config/accounts_box.py @@ -202,8 +202,8 @@ class AccountsBox(BaseConfigBox): ) if sync_warn_dialog.result == Gtk.ResponseType.YES: AsyncCall(sync_local_library, None) - settings.write_setting("library_sync_enabled", state) - else: - settings.write_setting("library_sync_enabled", state) + else: + return + self.on_setting_change(switch, state, "library_sync_enabled") self.sync_frame.set_visible(state)