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:
fieldOfView 2019-01-11 17:52:28 +01:00
parent c81689d233
commit c6fa47e584

View File

@ -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 = []