Created attachment 159551 [details] Application launcher still visible even the widget has been deleted (confirmed by the notification) SUMMARY Deleting an Application Launcher/Menu, when clicking then right-clicking fast (during the opening animation of the menu/launcher, I guess) doesn't close the launcher/menu. Tested on a (slow) VM, it may be more difficult to reproduce on a fast computer. STEPS TO REPRODUCE 1. Adding Application Launcher or/and Application Menu to desktop 2. Click on the widget then immediately right-click to show the menu 3. Select "Delete Application Launcher/Menu" to delete the widget (with the menu/launcher still visible) OBSERVED RESULT The widget is deleted, a notification confirms it, but the launcher/menu is still visible (see screenshot). It's a minor bug since clicking anywhere outside the menu/launcher close it. EXPECTED RESULT The widget should close the menu/launcher once deleted (or maybe even on right-click, cancelling the opening). SOFTWARE/OS VERSIONS Linux/KDE Plasma: Neon Live (20230504-0714) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Graphics: X11
Technically the applet isn't deleted internally until you close the notification, so that's why it's still able to appear after being deleted. If you close the notification when it's in this state, the popup will disappear. We already handle this circumstance by blocking a widget's ability to be activated by keyboard shortcuts after it's been deleted; I guess we should also make sure to close it if it happens to be open when deleted.
*** Bug 496138 has been marked as a duplicate of this bug. ***
*** Bug 504980 has been marked as a duplicate of this bug. ***