[flatpak] fix -> not properly checking the return result when setting the default remotes at the system level

This commit is contained in:
Vinicius Moreira
2020-08-20 14:18:45 -03:00
parent a6cbfd4a3f
commit e06c677602
2 changed files with 2 additions and 1 deletions

View File

@@ -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)