mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Check if the user can change the queue before showing option
If the user can't change the queue of other prints, then it can't move prints to the top. Contributes to issue CURA-9220.
This commit is contained in:
parent
bef10b8b35
commit
99d93fa58a
2 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,7 @@ Item
|
|||
text: catalog.i18nc("@label", "Move to top");
|
||||
visible: {
|
||||
if (printJob && (printJob.state == "queued" || printJob.state == "error") && !isAssigned(printJob)) {
|
||||
if (OutputDevice && OutputDevice.queuedPrintJobs[0]) {
|
||||
if (OutputDevice && OutputDevice.queuedPrintJobs[0] && OutputDevice.canWriteOthersPrintJobs) {
|
||||
return OutputDevice.queuedPrintJobs[0].key != printJob.key;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue