mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Don't show Request Access button when no printer is connected
CURA-2276
This commit is contained in:
parent
cf2c3e79cf
commit
2725abd4f4
1 changed files with 1 additions and 2 deletions
|
|
@ -38,7 +38,6 @@ Item
|
|||
text: catalog.i18nc("@action:button", "Connect")
|
||||
style: UM.Theme.styles.sidebar_action_button
|
||||
onClicked: connectActionDialog.show()
|
||||
enabled: true
|
||||
visible: !base.printerConnected
|
||||
}
|
||||
}
|
||||
|
|
@ -72,7 +71,7 @@ Item
|
|||
tooltip: catalog.i18nc("@info:tooltip", "Send access request to the printer")
|
||||
text: catalog.i18nc("@action:button", "Request Access")
|
||||
onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication()
|
||||
visible: !base.printerAcceptsCommands && !base.authenticationRequested
|
||||
visible: base.printerConnected && !base.printerAcceptsCommands && !base.authenticationRequested
|
||||
}
|
||||
|
||||
Row
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue