mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 03:03:13 +08:00
Disable monitor buttons when there is no job running
CURA-1036
This commit is contained in:
parent
43a3ea853a
commit
dc2384c92d
@ -109,8 +109,9 @@ Rectangle
|
|||||||
id: abortButton
|
id: abortButton
|
||||||
|
|
||||||
visible: printerConnected
|
visible: printerConnected
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
enabled: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" || Cura.MachineManager.printerOutputDevices[0].jobState == "printing"
|
||||||
|
|
||||||
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
anchors.top: progressBar.bottom
|
anchors.top: progressBar.bottom
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@ -154,9 +155,10 @@ Rectangle
|
|||||||
{
|
{
|
||||||
id: pauseButton
|
id: pauseButton
|
||||||
|
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
|
||||||
visible: printerConnected
|
visible: printerConnected
|
||||||
|
enabled: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" || Cura.MachineManager.printerOutputDevices[0].jobState == "printing"
|
||||||
|
|
||||||
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
anchors.top: progressBar.bottom
|
anchors.top: progressBar.bottom
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
||||||
anchors.right: abortButton.left
|
anchors.right: abortButton.left
|
||||||
|
Loading…
x
Reference in New Issue
Block a user