Improve status notification fallback value
This commit is contained in:
parent
0816f071f8
commit
2b32999f6e
4 changed files with 1 additions and 13 deletions
|
@ -16,7 +16,7 @@ Page {
|
|||
target: printer
|
||||
onJobAttrsFinished: {
|
||||
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) {
|
||||
notifier.notify(qsTr("Print success: ") + msg)
|
||||
pageStack.pop() //or replace?
|
||||
|
|
|
@ -190,10 +190,6 @@
|
|||
<source>Resolution</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Print success: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
|
@ -190,10 +190,6 @@
|
|||
<source>Resolution</source>
|
||||
<translation>Résolution</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unknown</source>
|
||||
<translation>Inconnu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Print success: </source>
|
||||
<translation>Impression réussie :</translation>
|
||||
|
|
|
@ -190,10 +190,6 @@
|
|||
<source>Resolution</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Print success: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
Loading…
Reference in a new issue