Reflect app uninstall/update auto-stop implemented for spoc#3

This commit is contained in:
Disassembler 2020-04-26 18:43:27 +02:00
parent f6c7823b6a
commit 17743ff767
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 1 additions and 3 deletions

View File

@ -49,13 +49,11 @@ class ActionAppQueue:
self.queue.append(ActionItem(ActionItemType.APP_INSTALL, app.name, app.install)) self.queue.append(ActionItem(ActionItemType.APP_INSTALL, app.name, app.install))
def update_app(self, app): def update_app(self, app):
self.queue.append(ActionItem(ActionItemType.APP_STOP, app.name, app.stop))
self.queue.append(ActionItem(ActionItemType.APP_DOWNLOAD, app.name, app.download)) self.queue.append(ActionItem(ActionItemType.APP_DOWNLOAD, app.name, app.download))
self.queue.append(ActionItem(ActionItemType.APP_UNPACK, app.name, app.unpack_downloaded)) self.queue.append(ActionItem(ActionItemType.APP_UNPACK, app.name, app.unpack_downloaded))
self.queue.append(ActionItem(ActionItemType.APP_UPDATE, app.name, app.update)) self.queue.append(ActionItem(ActionItemType.APP_UPDATE, app.name, app.update))
def uninstall_app(self, app): def uninstall_app(self, app):
self.queue.append(ActionItem(ActionItemType.APP_STOP, app.name, app.stop))
self.queue.append(ActionItem(ActionItemType.APP_UNINSTALL, app.name, app.uninstall)) self.queue.append(ActionItem(ActionItemType.APP_UNINSTALL, app.name, app.uninstall))
def start_app(self, app): def start_app(self, app):

View File

@ -20,7 +20,7 @@ def register_app(app, host, login, password):
'host': host, 'host': host,
'login': login if login else 'N/A', 'login': login if login else 'N/A',
'password': password if password else 'N/A', 'password': password if password else 'N/A',
'visible': False, 'visible': True,
}) })
register_proxy(app) register_proxy(app)
update_app_config(app) update_app_config(app)