add flatpak escape if there is no user repo
This commit is contained in:
parent
4d923a7516
commit
72ee2bd2b5
@ -101,7 +101,7 @@ pub fn flatpak_update_page(
|
|||||||
if let Ok(remotes) =
|
if let Ok(remotes) =
|
||||||
libflatpak::Installation::list_remotes(&flatpak_user_installation, cancellable_no)
|
libflatpak::Installation::list_remotes(&flatpak_user_installation, cancellable_no)
|
||||||
{
|
{
|
||||||
for remote in remotes {
|
for remote in remotes.clone() {
|
||||||
if remote.is_disabled() {
|
if remote.is_disabled() {
|
||||||
continue;
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user