Show pause text even if there is nothing to pause

CL-541
This commit is contained in:
Jaime van Kessel 2018-01-04 09:58:15 +01:00
parent 42b50bf749
commit faa4af634a

View File

@ -277,10 +277,9 @@ Item
(["paused", "printing"].indexOf(activePrintJob.state) >= 0) (["paused", "printing"].indexOf(activePrintJob.state) >= 0)
text: { text: {
var result = "";
if (!printerConnected || activePrintJob == null) if (!printerConnected || activePrintJob == null)
{ {
return ""; return catalog.i18nc("@label:", "Pause");
} }
if (activePrintJob.state == "paused") if (activePrintJob.state == "paused")