Browse Source

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
fieldOfView 6 years ago
parent
commit
c6fa47e584
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/PrinterOutput/ConfigurationModel.py

+ 1 - 1
cura/PrinterOutput/ConfigurationModel.py

@@ -54,7 +54,7 @@ class ConfigurationModel(QObject):
         for configuration in self._extruder_configurations:
             if configuration is None:
                 return False
-        return self._printer_type is not None
+        return self._printer_type != ""
 
     def __str__(self):
         message_chunks = []