mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 16:44:16 +02:00
[flatpak] fix -> not properly checking the return result when setting the default remotes at the system level
This commit is contained in:
@@ -369,7 +369,7 @@ class FlatpakManager(SoftwareManager):
|
||||
watcher.print('Operation aborted')
|
||||
return TransactionResult(success=False, installed=[], removed=[])
|
||||
else:
|
||||
if not handler.handle_simple(flatpak.set_default_remotes('system', user_password)):
|
||||
if not handler.handle_simple(flatpak.set_default_remotes('system', user_password))[0]:
|
||||
watcher.show_message(title=self.i18n['error'].capitalize(),
|
||||
body=self.i18n['flatpak.remotes.system_flathub.error'],
|
||||
type_=MessageType.ERROR)
|
||||
|
||||
Reference in New Issue
Block a user