From 2604c654669b4f4686215b49b287079e8431b859 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sun, 11 Oct 2020 16:13:14 +0200 Subject: [PATCH] Don't consider reports to be warnings --- qml/pages/utils.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qml/pages/utils.js b/qml/pages/utils.js index 037b1e4..8612c53 100644 --- a/qml/pages/utils.js +++ b/qml/pages/utils.js @@ -324,9 +324,14 @@ function isWaringState(printer) { return true; } - else if(!has(printer.attrs["printer-state-reasons"].value, "none")) + + for(var i in printer.attrs["printer-state-reasons"].value) { - return true; + var value = printer.attrs["printer-state-reasons"].value[i]; + if(value != "none" && !(endsWith("-report", value))) + { + return true; + } } return false; }