|
@@ -27,9 +27,17 @@ from UM.Version import Version
|
|
from . import ClusterUM3OutputDevice, LegacyUM3OutputDevice
|
|
from . import ClusterUM3OutputDevice, LegacyUM3OutputDevice
|
|
from .Cloud.CloudOutputDeviceManager import CloudOutputDeviceManager
|
|
from .Cloud.CloudOutputDeviceManager import CloudOutputDeviceManager
|
|
|
|
|
|
|
|
+<<<<<<< HEAD
|
|
if TYPE_CHECKING:
|
|
if TYPE_CHECKING:
|
|
from cura.Settings.GlobalStack import GlobalStack
|
|
from cura.Settings.GlobalStack import GlobalStack
|
|
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
|
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
|
|
|
+=======
|
|
|
|
+from typing import Optional, TYPE_CHECKING
|
|
|
|
+
|
|
|
|
+if TYPE_CHECKING:
|
|
|
|
+ from cura.Settings.GlobalStack import GlobalStack
|
|
|
|
+
|
|
|
|
+>>>>>>> origin/WIP_onboarding
|
|
|
|
|
|
i18n_catalog = i18nCatalog("cura")
|
|
i18n_catalog = i18nCatalog("cura")
|
|
|
|
|
|
@@ -450,9 +458,8 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|
Logger.log("d", "Checking if cloud connection is possible...")
|
|
Logger.log("d", "Checking if cloud connection is possible...")
|
|
|
|
|
|
# Pre-Check: Skip if active machine already has been cloud connected or you said don't ask again
|
|
# Pre-Check: Skip if active machine already has been cloud connected or you said don't ask again
|
|
- active_machine = self._application.getMachineManager().activeMachine # type: Optional[GlobalStack]
|
|
|
|
|
|
+ active_machine = self._application.getMachineManager().activeMachine # type: Optional[GlobalStack]
|
|
if active_machine:
|
|
if active_machine:
|
|
-
|
|
|
|
# Check 1A: Printer isn't already configured for cloud
|
|
# Check 1A: Printer isn't already configured for cloud
|
|
if ConnectionType.CloudConnection.value in active_machine.configuredConnectionTypes:
|
|
if ConnectionType.CloudConnection.value in active_machine.configuredConnectionTypes:
|
|
Logger.log("d", "Active machine was already configured for cloud.")
|
|
Logger.log("d", "Active machine was already configured for cloud.")
|