Run the sync setting change through on_setting_change.

This way the settings-changed signal will fire, which I need for the notification bar.
This commit is contained in:
Daniel Johnson 2024-03-07 19:18:48 -05:00
parent 99f0e1b352
commit bf7dcdf1a7

View file

@ -202,8 +202,8 @@ class AccountsBox(BaseConfigBox):
) )
if sync_warn_dialog.result == Gtk.ResponseType.YES: if sync_warn_dialog.result == Gtk.ResponseType.YES:
AsyncCall(sync_local_library, None) AsyncCall(sync_local_library, None)
settings.write_setting("library_sync_enabled", state) else:
else: return
settings.write_setting("library_sync_enabled", state)
self.on_setting_change(switch, state, "library_sync_enabled")
self.sync_frame.set_visible(state) self.sync_frame.set_visible(state)