[snap] fix -> returning success when the user declines the Snap channel change

This commit is contained in:
Vinicius Moreira
2020-09-11 15:44:53 -03:00
parent 1becd281fa
commit e4e153c55e

View File

@@ -274,13 +274,13 @@ class SnapManager(SoftwareManager):
if not channel: if not channel:
watcher.show_message(title=self.i18n['snap.action.channel.label'], watcher.show_message(title=self.i18n['snap.action.channel.label'],
body=self.i18n['snap.action.channel.error.no_channel']) body=self.i18n['snap.action.channel.error.no_channel'])
return True return False
return ProcessHandler(watcher).handle_simple(snap.refresh_and_stream(app_name=pkg.name, return ProcessHandler(watcher).handle_simple(snap.refresh_and_stream(app_name=pkg.name,
root_password=root_password, root_password=root_password,
channel=channel))[0] channel=channel))[0]
except: except:
return True return False
def _start_category_task(self, task_man: TaskManager): def _start_category_task(self, task_man: TaskManager):
if task_man: if task_man: