diff options
author | Gabriel Ivascu <ivascu.gabriel59@gmail.com> | 2017-05-31 18:09:45 +0300 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-08-06 09:28:09 -0500 |
commit | c1213638dec09a5623b9dae031b26ec095f5a856 (patch) | |
tree | cf08380887814f076e2a7f770e33995761b4e637 /src/prefs-dialog.c | |
parent | 9c6be5b810224697a827cce37f73d2a1c3a9af80 (diff) | |
download | epiphany-c1213638dec09a5623b9dae031b26ec095f5a856.tar.gz |
prefs-dialog: Set initial sync when collection is disabled
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 88f3dac12..91042c3ab 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -184,11 +184,15 @@ sync_collection_toggled_cb (GtkToggleButton *button, manager = EPHY_SYNCHRONIZABLE_MANAGER (ephy_shell_get_password_manager (ephy_shell_get_default ())); else if (GTK_WIDGET (button) == dialog->sync_history_checkbutton) manager = EPHY_SYNCHRONIZABLE_MANAGER (ephy_shell_get_history_manager (ephy_shell_get_default ())); + else + g_assert_not_reached (); - if (gtk_toggle_button_get_active (button)) + if (gtk_toggle_button_get_active (button)) { ephy_sync_service_register_manager (dialog->sync_service, manager); - else + } else { ephy_sync_service_unregister_manager (dialog->sync_service, manager); + ephy_synchronizable_manager_set_is_initial_sync (manager, TRUE); + } } static void |