improvement: bt install / uninstall

This commit is contained in:
Vinicius Moreira
2019-08-01 17:24:26 -03:00
parent 5d04dddaa7
commit 26753090a1
2 changed files with 31 additions and 22 deletions

View File

@@ -271,7 +271,7 @@ class ManageWindow(QWidget):
def uninstall_app(self, app: ApplicationView):
pwd = None
requires_root = self.manager.requires_root('uninstall', self.table_apps.get_selected_app().model)
requires_root = self.manager.requires_root('uninstall', app.model)
if not is_root() and requires_root:
pwd, ok = ask_root_password(self.locale_keys)
@@ -622,7 +622,7 @@ class ManageWindow(QWidget):
def install_app(self, app: ApplicationView):
pwd = None
requires_root = self.manager.requires_root('install', self.table_apps.get_selected_app().model)
requires_root = self.manager.requires_root('install', app.model)
if not is_root() and requires_root:
pwd, ok = ask_root_password(self.locale_keys)