diff options
Diffstat (limited to 'cura/Machines/Models/GlobalStacksModel.py')
-rw-r--r-- | cura/Machines/Models/GlobalStacksModel.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cura/Machines/Models/GlobalStacksModel.py b/cura/Machines/Models/GlobalStacksModel.py index cfe8c7587a..586bd11819 100644 --- a/cura/Machines/Models/GlobalStacksModel.py +++ b/cura/Machines/Models/GlobalStacksModel.py @@ -61,7 +61,9 @@ class GlobalStacksModel(ListModel): Only printers that match this connection type will be listed in the model. """ - return int(self._filter_connection_type) + if self._filter_connection_type is None: + return -1 + return self._filter_connection_type.value filterOnlineOnlyChanged = pyqtSignal() def setFilterOnlineOnly(self, new_filter: bool) -> None: |