mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 23:46:00 +08:00
Merge branch 'CURA-5942_printer_selector' of github.com:Ultimaker/Cura into CURA-5942_printer_selector
This commit is contained in:
commit
4d6d0ed70c
@ -212,7 +212,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||||||
self.uniqueConfigurationsChanged.emit()
|
self.uniqueConfigurationsChanged.emit()
|
||||||
|
|
||||||
# Returns the unique configurations of the printers within this output device
|
# Returns the unique configurations of the printers within this output device
|
||||||
@pyqtProperty("QVariantList", 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(set([configuration.printerType for configuration in self._unique_configurations]))
|
||||||
|
|
||||||
@ -243,4 +243,4 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||||||
if not self._firmware_updater:
|
if not self._firmware_updater:
|
||||||
return
|
return
|
||||||
|
|
||||||
self._firmware_updater.updateFirmware(firmware_file)
|
self._firmware_updater.updateFirmware(firmware_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user