mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 00:25:55 +08:00
Reverse sorting, newer machines on top.
Same brand or name, but with a higher number should generally be first, so reverse sorting. CURA-9769
This commit is contained in:
parent
f8b0305bae
commit
b4405d886b
@ -252,7 +252,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||
# List could end up empty!
|
||||
Logger.log("e", "Found a broken configuration in the synced list!")
|
||||
all_configurations.remove(None)
|
||||
new_configurations = sorted(all_configurations, key = lambda config: config.printerType or "")
|
||||
new_configurations = sorted(all_configurations, key = lambda config: config.printerType or "", reverse = True)
|
||||
if new_configurations != self._unique_configurations:
|
||||
self._unique_configurations = new_configurations
|
||||
self.uniqueConfigurationsChanged.emit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user