mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Handle QML exposing of filterConnectionType if not filtering
It should expose it as -1 then. Contributes to issue CURA-8609.
This commit is contained in:
parent
0583814dfa
commit
0378531f13
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue