mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 22:05:51 +08:00
Don't show Request Access button when no printer is connected
CURA-2276
This commit is contained in:
parent
cf2c3e79cf
commit
2725abd4f4
@ -38,7 +38,6 @@ Item
|
|||||||
text: catalog.i18nc("@action:button", "Connect")
|
text: catalog.i18nc("@action:button", "Connect")
|
||||||
style: UM.Theme.styles.sidebar_action_button
|
style: UM.Theme.styles.sidebar_action_button
|
||||||
onClicked: connectActionDialog.show()
|
onClicked: connectActionDialog.show()
|
||||||
enabled: true
|
|
||||||
visible: !base.printerConnected
|
visible: !base.printerConnected
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -72,7 +71,7 @@ Item
|
|||||||
tooltip: catalog.i18nc("@info:tooltip", "Send access request to the printer")
|
tooltip: catalog.i18nc("@info:tooltip", "Send access request to the printer")
|
||||||
text: catalog.i18nc("@action:button", "Request Access")
|
text: catalog.i18nc("@action:button", "Request Access")
|
||||||
onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication()
|
onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication()
|
||||||
visible: !base.printerAcceptsCommands && !base.authenticationRequested
|
visible: base.printerConnected && !base.printerAcceptsCommands && !base.authenticationRequested
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
|
Loading…
x
Reference in New Issue
Block a user