mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Show print job context menu if state == "error"
Contributes to CL-1175
This commit is contained in:
parent
5d2a914180
commit
673734ee12
3 changed files with 11 additions and 3 deletions
|
@ -217,6 +217,14 @@ Item
|
|||
height: 32 * screenScaleFactor // TODO: Theme!
|
||||
enabled: !cloudConnection
|
||||
onClicked: enabled ? contextMenu.switchPopupState() : {}
|
||||
visible:
|
||||
{
|
||||
if (!printJob) {
|
||||
return false
|
||||
}
|
||||
var states = ["queued", "error", "sent_to_printer", "pre_print", "printing", "pausing", "paused", "resuming"]
|
||||
return states.indexOf(printJob.state) !== -1
|
||||
}
|
||||
}
|
||||
|
||||
MonitorContextMenu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue