mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Fix: Sort updateables on top of others instead of vice-versa.
This commit is contained in:
parent
00bdd9d72c
commit
3d645140f2
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class LocalPackageList(PackageList):
|
||||||
|
|
||||||
def _sortSectionsOnUpdate(self) -> None:
|
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"]))
|
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:
|
def _removePackageModel(self, package_id: str) -> None:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue