mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Don't show "Review Connection" unless you're on the LAN
Contributes to CL-1247
This commit is contained in:
parent
b6b7f8cfce
commit
0ef014a542
1 changed files with 4 additions and 2 deletions
|
@ -481,6 +481,8 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
||||||
"cloud-flow-completed.svg"),
|
"cloud-flow-completed.svg"),
|
||||||
image_caption = i18n_catalog.i18nc("@info:status", "Connected!")
|
image_caption = i18n_catalog.i18nc("@info:status", "Connected!")
|
||||||
)
|
)
|
||||||
|
# Don't show the review connection link if we're not on the local network
|
||||||
|
if self._application.getMachineManager().activeMachineHasNetworkConnection:
|
||||||
self._cloud_flow_complete_message.addAction("", i18n_catalog.i18nc("@action", "Review your connection"), "", "", 1) # TODO: Icon
|
self._cloud_flow_complete_message.addAction("", i18n_catalog.i18nc("@action", "Review your connection"), "", "", 1) # TODO: Icon
|
||||||
self._cloud_flow_complete_message.actionTriggered.connect(self._onReviewCloudConnection)
|
self._cloud_flow_complete_message.actionTriggered.connect(self._onReviewCloudConnection)
|
||||||
self._cloud_flow_complete_message.show()
|
self._cloud_flow_complete_message.show()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue