SUMMARY If a print is active, the printing applet shows some wrong string for all printers: "0, 1 active jobs". This is a regression since 20.08. Please see the attached screenshot for more details. STEPS TO REPRODUCE 1. start a print 2. open into printer applet OBSERVED RESULT a wrong description is shown for all printers: "0, 1 active jobs" EXPECTED RESULT a correct description should be shown, like it was the case in earlier versions SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.19.4 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0 Kernel Version: 5.8.1-arch1-1
Created attachment 130992 [details] a screenshot of the printing applet showing wrong descriptions for all printers
Can confirm. Probably my fault, sorry about that. I'll see what I can do about it.
The string is: i18np("%1, %2 active job", "%1, %2 active jobs", model.stateMessage, jobsFilterModel.count); So it looks like model.stateMessage is not returning a human-readable bit of text as we expect. It should say "Printing" or something like that.
Looks like it returns the right text when it's in the idle state though.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/print-manager/-/merge_requests/4
Git commit 6ba27a6586cf33d8680bce99beb601ff1626ab00 by Nate Graham. Committed on 21/08/2020 at 16:35. Pushed by ngraham into branch 'master'. [applet] Simplify printer list item subtitle The subtitle currently builds up a complicated string that tells you thhe number of active and/or inactive jobs. However what you really care about is the current state: idle or printing, paused, stuck, etc. I don't think The number of jobs is useful or actionable information. So let's remove it. This happens to fix a bug whereby the state is displayed incorrectly. FIXED-IN: 20.12.0 M +1 -15 plasmoid/package/contents/ui/PrinterItem.qml https://invent.kde.org/utilities/print-manager/commit/6ba27a6586cf33d8680bce99beb601ff1626ab00