add flatpak escape if there is no user repo

This commit is contained in:
Ward from fusion-voyager-3 2024-08-29 20:40:47 +03:00
parent 4d923a7516
commit 72ee2bd2b5

View File

@ -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");
}
}
});