mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Filter placeholders-devices: but use parseBool instead. [CURA-6057]
This commit is contained in:
parent
c5f4b30264
commit
367a12557f
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ from PyQt5.QtCore import pyqtSlot, pyqtProperty, pyqtSignal, QObject
|
|||
|
||||
from UM.i18n import i18nCatalog
|
||||
from UM.Logger import Logger
|
||||
from UM.Util import parseBool
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from PyQt5.QtCore import QObject
|
||||
|
@ -90,7 +91,7 @@ class DiscoveredPrintersModel(QObject):
|
|||
@pyqtProperty(list, notify = discoveredPrintersChanged)
|
||||
def discoveredPrinters(self) -> List["DiscoveredPrinter"]:
|
||||
item_list = list(
|
||||
x for x in self._discovered_printer_by_ip_dict.values() if x.device.getProperty("temporary") != "true")
|
||||
x for x in self._discovered_printer_by_ip_dict.values() if not parseBool(x.device.getProperty("temporary")))
|
||||
item_list.sort(key = lambda x: x.device.name)
|
||||
return item_list
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue