mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
[snap] fix -> returning success when the user declines the Snap channel change
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user