Merge branch 'staging' into modules

This commit is contained in:
Vinicius Moreira
2019-08-01 17:31:22 -03:00
2 changed files with 31 additions and 22 deletions

View File

@@ -272,7 +272,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)
@@ -639,7 +639,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)