Improve status notification fallback value

This commit is contained in:
Anton Thomasson 2020-01-03 13:50:21 +01:00
parent 0816f071f8
commit 2b32999f6e
4 changed files with 1 additions and 13 deletions

View file

@ -16,7 +16,7 @@ Page {
target: printer target: printer
onJobAttrsFinished: { onJobAttrsFinished: {
var msg = printer.jobAttrs["job-state-message"] && printer.jobAttrs["job-state-message"].value != "" var msg = printer.jobAttrs["job-state-message"] && printer.jobAttrs["job-state-message"].value != ""
? printer.jobAttrs["job-state-message"].value : qsTr("Unknown") ? printer.jobAttrs["job-state-message"].value : Utils.ippName("job-state", printer.jobAttrs["job-state"].value)
if(status == true) { if(status == true) {
notifier.notify(qsTr("Print success: ") + msg) notifier.notify(qsTr("Print success: ") + msg)
pageStack.pop() //or replace? pageStack.pop() //or replace?

View file

@ -190,10 +190,6 @@
<source>Resolution</source> <source>Resolution</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Print success: </source> <source>Print success: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View file

@ -190,10 +190,6 @@
<source>Resolution</source> <source>Resolution</source>
<translation>Résolution</translation> <translation>Résolution</translation>
</message> </message>
<message>
<source>Unknown</source>
<translation>Inconnu</translation>
</message>
<message> <message>
<source>Print success: </source> <source>Print success: </source>
<translation>Impression réussie :</translation> <translation>Impression réussie :</translation>

View file

@ -190,10 +190,6 @@
<source>Resolution</source> <source>Resolution</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Print success: </source> <source>Print success: </source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>