mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Use parseBool instead of "is True" and "is False"
Contributes to CL-1222
This commit is contained in:
parent
0e913044de
commit
aa454ea357
1 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@ from UM.Signal import Signal, signalemitter
|
||||||
from UM.Version import Version
|
from UM.Version import Version
|
||||||
from UM.Message import Message
|
from UM.Message import Message
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
from UM.Util import parseBool
|
||||||
|
|
||||||
from . import ClusterUM3OutputDevice, LegacyUM3OutputDevice
|
from . import ClusterUM3OutputDevice, LegacyUM3OutputDevice
|
||||||
from .Cloud.CloudOutputDeviceManager import CloudOutputDeviceManager
|
from .Cloud.CloudOutputDeviceManager import CloudOutputDeviceManager
|
||||||
|
@ -418,12 +419,12 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check 1B: Printer isn't already configured for cloud
|
# Check 1B: Printer isn't already configured for cloud
|
||||||
if active_machine.getMetaDataEntry("cloud_flow_complete", "value") is True:
|
if parseBool(active_machine.getMetaDataEntry("cloud_flow_complete", "value")):
|
||||||
Logger.log("d", "Active machine was already configured for cloud.")
|
Logger.log("d", "Active machine was already configured for cloud.")
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check 2: User did not already say "Don't ask me again"
|
# Check 2: User did not already say "Don't ask me again"
|
||||||
if active_machine.getMetaDataEntry("show_cloud_message", "value") is False:
|
if not parseBool(active_machine.getMetaDataEntry("show_cloud_message", "value")):
|
||||||
Logger.log("d", "Active machine shouldn't ask about cloud anymore.")
|
Logger.log("d", "Active machine shouldn't ask about cloud anymore.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue