Bug 434034 - List of printers is not refreshed when removing the last one
Summary: List of printers is not refreshed when removing the last one
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_printer_manager (other bugs)
Version First Reported In: 5.21.1
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Daniel Nicoletti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-06 00:15 UTC by Alberto Salvia Novella
Modified: 2024-04-03 23:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Salvia Novella 2021-03-06 00:15:29 UTC
https://youtu.be/yqwf4JW9YB4
Comment 1 Kishore Gopalakrishnan 2022-08-14 06:56:03 UTC
SUMMARY
When the user removes the last printer from the Printers KCM (in System Settings), the removed printer is still shown until the user navigates to another KCM and back.

STEPS TO REPRODUCE
1. Go to System Settings > Hardware > Printers, and make sure only a single printer is present (when only a single printer is present, there will be no sidebar to choose the printer)
2. Remove that printer by pressing the 'remove printer' button on top
3. Confirm in the dialog box that appears.

OBSERVED RESULTS
The removed printer is still shown. The list becomes empty only if we navigate to another KCM and back.

EXPECTED RESULTS
The list of printers should be made empty when the user removes the last printer. Otherwise, the user gets confused and assumes that the removal somehow failed.

SOFTWARE VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.60-1-lts (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
A. If multiple printers are present, the removed entry is removed from the list as expected. The bug happens when the removed printer was the only printer present.

B. Probably will be fixed by https://invent.kde.org/utilities/print-manager/-/merge_requests/21

C. May be duplicate of https://bugs.kde.org/show_bug.cgi?id=405567 (but it is not clear from that bug's description)
Comment 2 Enrico 2022-12-24 17:40:00 UTC
Hello, I was posting a similar bug report. The printer list is not refreshed also when adding a printer, not only when removing it. I post the bug report I was writing before I found this. I had this problem also in Neon 20.04 and now on RebornOS (Arch) so I set this as confirmed hoping that someone can fix it :-)


SUMMARY
***
Hello,
I think that the printer settings page should be refreshed after adding or removing a printer. At the moment any change made to the printers is shown only by clicking on another settings entry and then back on "printers".
I create the bug report because IMHO it's a bug, but you can set as "wishlist" if you don't consider this a bug
***

STEPS TO REPRODUCE
1. Open the printer manager in system settings (it was empty because I haven't added any printer yet)
2. Add a printer (I've tried with an ipp: printer)

OBSERVED RESULT
The added printer is not listed in the printers window despite it has been added. To show the printer I need to click on another tab of the settings and then again on Printers.

If you already have a printer, you can delete it and that printer remains listed in the printers-settings page until you click on another setting page and then again on Printers.

EXPECTED RESULT
The printer page should be refreshed after adding/removing a printer so the user can see the changes just made.

Operating System: RebornOS Linux (Arch)
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.1-arch1-1 (64-bit)
Graphics Platform: Wayland