Commit c33343c2 authored by Roman Alifanov's avatar Roman Alifanov

fixed bug: programs could not be installed if the list of installed programs…

fixed bug: programs could not be installed if the list of installed programs from epm play was empty.
parent c5aa2c4b
...@@ -227,17 +227,17 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow): ...@@ -227,17 +227,17 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
) )
def get_install_remove_lists(self): def get_install_remove_lists(self):
if not (self.installed_apps and self.rows): installed_apps = self.installed_apps or []
return [], [] rows = self.rows or {}
to_install = [ to_install = [
app_name for app_name, row in self.rows.items() app_name for app_name, row in rows.items()
if row.checkbox.get_active() and app_name not in self.installed_apps if row.checkbox.get_active() and app_name not in installed_apps
] ]
to_remove = [ to_remove = [
app_name for app_name, row in self.rows.items() app_name for app_name, row in rows.items()
if not row.checkbox.get_active() and app_name in self.installed_apps if not row.checkbox.get_active() and app_name in installed_apps
] ]
return to_install, to_remove return to_install, to_remove
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment