diff --git a/plugins/UM3NetworkPrinting/resources/qml/MonitorContextMenu.qml b/plugins/UM3NetworkPrinting/resources/qml/MonitorContextMenu.qml index 33fdb0eb38..3acaba68fc 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/MonitorContextMenu.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/MonitorContextMenu.qml @@ -23,7 +23,7 @@ Item //So compute here the visibility of the menu items, so that we can use it for the visibility of the button. property bool sendToTopVisible: { - if (printJob && printJob.state in ("queued", "error") && !isAssigned(printJob)) { + if (printJob && (printJob.state == "queued" || printJob.state == "error")) { if (OutputDevice && OutputDevice.queuedPrintJobs[0] && OutputDevice.canWriteOthersPrintJobs) { return OutputDevice.queuedPrintJobs[0].key != printJob.key; } @@ -246,10 +246,4 @@ Item function close() { popUp.close() } - function isAssigned(job) { - if (!job) { - return false; - } - return job.assignedPrinter ? true : false; - } }