mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Mark PrinterOutputDevice without printer type as invalid
Since self._printer_type was defined as an empty string and the setter only accepts strings, it could never be None
This commit is contained in:
parent
c81689d233
commit
c6fa47e584
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class ConfigurationModel(QObject):
|
||||||
for configuration in self._extruder_configurations:
|
for configuration in self._extruder_configurations:
|
||||||
if configuration is None:
|
if configuration is None:
|
||||||
return False
|
return False
|
||||||
return self._printer_type is not None
|
return self._printer_type != ""
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
message_chunks = []
|
message_chunks = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue