mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Sort unique printer types
So that they appear in a consistent order everywhere.
This commit is contained in:
parent
08c736f770
commit
a5134001e9
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||||
# Returns the unique configurations of the printers within this output device
|
# Returns the unique configurations of the printers within this output device
|
||||||
@pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
|
@pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
|
||||||
def uniquePrinterTypes(self) -> List[str]:
|
def uniquePrinterTypes(self) -> List[str]:
|
||||||
return list(set([configuration.printerType for configuration in self._unique_configurations]))
|
return list(sorted(set([configuration.printerType for configuration in self._unique_configurations])))
|
||||||
|
|
||||||
def _onPrintersChanged(self) -> None:
|
def _onPrintersChanged(self) -> None:
|
||||||
for printer in self._printers:
|
for printer in self._printers:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue