Fix: Sort updateables on top of others instead of vice-versa.

This commit is contained in:
Remco Burema 2022-11-09 10:37:49 +01:00
parent 00bdd9d72c
commit 3d645140f2

View file

@ -44,7 +44,7 @@ class LocalPackageList(PackageList):
def _sortSectionsOnUpdate(self) -> None:
section_order = dict(zip([i for k, v in self.PACKAGE_CATEGORIES.items() for i in self.PACKAGE_CATEGORIES[k].values()], ["a", "b", "c", "d"]))
self.sort(lambda model: (section_order[model.sectionTitle], model.canUpdate, model.displayName.lower()), key = "package")
self.sort(lambda model: (section_order[model.sectionTitle], not model.canUpdate, model.displayName.lower()), key = "package")
def _removePackageModel(self, package_id: str) -> None:
"""