mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Rename META_REMOVED_FROM_ACCOUNT to META_LINKED_TO_ACCOUNT
The meta data entry was rename to be more representative of its function. In addition, the bool metadata entry is now properly handled using the parseBool function. CURA-7438
This commit is contained in:
parent
9e891c201b
commit
458b439a9a
2 changed files with 12 additions and 12 deletions
|
@ -22,6 +22,7 @@ from UM.Settings.SettingFunction import SettingFunction
|
|||
from UM.Signal import postponeSignals, CompressTechnique
|
||||
|
||||
import cura.CuraApplication # Imported like this to prevent circular references.
|
||||
from UM.Util import parseBool
|
||||
|
||||
from cura.Machines.ContainerNode import ContainerNode
|
||||
from cura.Machines.ContainerTree import ContainerTree
|
||||
|
@ -492,8 +493,7 @@ class MachineManager(QObject):
|
|||
|
||||
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
||||
def activeMachineIsLinkedToCurrentAccount(self) -> bool:
|
||||
from plugins.UM3NetworkPrinting.src.Cloud.CloudOutputDeviceManager import META_REMOVED_FROM_ACCOUNT
|
||||
return not self.activeMachine.getMetaDataEntry(META_REMOVED_FROM_ACCOUNT, False)
|
||||
return parseBool(self.activeMachine.getMetaDataEntry("linked_to_account", "True"))
|
||||
|
||||
@pyqtProperty(bool, notify = printerConnectedStatusChanged)
|
||||
def activeMachineHasNetworkConnection(self) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue