mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 05:48:59 +08:00
Filter placeholders-devices: but use parseBool instead. [CURA-6057]
This commit is contained in:
parent
c5f4b30264
commit
367a12557f
@ -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…
x
Reference in New Issue
Block a user