From 72ee2bd2b5412e5bccc822fb09eab8c1ffeeeed5 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 29 Aug 2024 20:40:47 +0300 Subject: [PATCH] add flatpak escape if there is no user repo --- src/bin/gui/flatpak_update_page/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"); + } } });