mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -06:00
Use QStringList instead of QVariantList since the return value is a list of strings.
Co-Authored-By: diegopradogesto <d.pradogesto@ultimaker.com>
This commit is contained in:
parent
5b940b5242
commit
4990f20566
1 changed files with 2 additions and 2 deletions
|
@ -212,7 +212,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||
self.uniqueConfigurationsChanged.emit()
|
||||
|
||||
# Returns the unique configurations of the printers within this output device
|
||||
@pyqtProperty("QVariantList", notify = uniqueConfigurationsChanged)
|
||||
@pyqtProperty("QStringList", notify = uniqueConfigurationsChanged)
|
||||
def uniquePrinterTypes(self) -> List[str]:
|
||||
return list(set([configuration.printerType for configuration in self._unique_configurations]))
|
||||
|
||||
|
@ -243,4 +243,4 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||
if not self._firmware_updater:
|
||||
return
|
||||
|
||||
self._firmware_updater.updateFirmware(firmware_file)
|
||||
self._firmware_updater.updateFirmware(firmware_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue