mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 16:09:15 +08:00
(Add-by-IP) Incorporated review comments. [CURA-6294]
This commit is contained in:
parent
5b31feebba
commit
740dd095cc
@ -37,8 +37,8 @@ i18n_catalog = i18nCatalog("cura")
|
|||||||
# If we discover a printer that has the same key as the active machine instance a connection is made.
|
# If we discover a printer that has the same key as the active machine instance a connection is made.
|
||||||
@signalemitter
|
@signalemitter
|
||||||
class UM3OutputDevicePlugin(OutputDevicePlugin):
|
class UM3OutputDevicePlugin(OutputDevicePlugin):
|
||||||
addDeviceSignal = Signal()
|
addDeviceSignal = Signal() # Called '...Signal' to avoid confusion with function-names.
|
||||||
removeDeviceSignal = Signal()
|
removeDeviceSignal = Signal() # Ditto ^^^.
|
||||||
discoveredDevicesChanged = Signal()
|
discoveredDevicesChanged = Signal()
|
||||||
cloudFlowIsPossible = Signal()
|
cloudFlowIsPossible = Signal()
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||||||
self._zero_conf.close()
|
self._zero_conf.close()
|
||||||
self._cloud_output_device_manager.stop()
|
self._cloud_output_device_manager.stop()
|
||||||
|
|
||||||
def canAddManualDevice(self, address: str) -> ManualDeviceAdditionAttempt:
|
def canAddManualDevice(self, address: str = "") -> ManualDeviceAdditionAttempt:
|
||||||
# This plugin should always be the fallback option (at least try it):
|
# This plugin should always be the fallback option (at least try it):
|
||||||
return ManualDeviceAdditionAttempt.POSSIBLE
|
return ManualDeviceAdditionAttempt.POSSIBLE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user