diff --git a/src/bin/gui/flatpak_update_page/mod.rs b/src/bin/gui/flatpak_update_page/mod.rs index 05f3b3f..e34e430 100644 --- a/src/bin/gui/flatpak_update_page/mod.rs +++ b/src/bin/gui/flatpak_update_page/mod.rs @@ -101,7 +101,7 @@ pub fn flatpak_update_page( if let Ok(remotes) = libflatpak::Installation::list_remotes(&flatpak_user_installation, cancellable_no) { - for remote in remotes { + for remote in remotes.clone() { if remote.is_disabled() { continue; }; @@ -141,6 +141,11 @@ pub fn flatpak_update_page( } } } + if remotes.is_empty() { + appstream_sync_status_sender + .send_blocking("FN_OVERRIDE_SUCCESSFUL".to_owned()) + .expect("appstream_sync_status_receiver closed"); + } } });