Code:
When I add the applet to a panel, then remove it, it stops correctly.
However, if I add it to the desktop, then after removing, the onCurrentTimeChanged in compactRepresentation still fires. What am I doing wrong here?
Code:
When I add the applet to a panel, then remove it, it stops correctly.
However, if I add it to the desktop, then after removing, the onCurrentTimeChanged in compactRepresentation still fires. What am I doing wrong here?
does it stop running if you remove it from the desktop and then restart the shell?
systemctl restart --user plasma-plasmashell.service
It stops after restart.
something in ~/.cache possibly?
what happens if you remove it from the desktop—then delete the .cache—then restart the shell?
I installed your widget and onCurrentTimeChanged does stop firing for me after removing it (Plasma 6.6.5, KDE Frameworks 6.26.0, Qt 6.11.1).
Widgets will keep running while the “Widget removed” notification that lets you undo the removal is showing, after that notification is closed then the widget is actually destroyed, if that is not working like that for you it could be a bug.
I see. When I clear that “Widget removed” notification from the notification history, then the widget stops.
It’s actually the same problem for the desktop and panels, only that I used “Show alternatives” on the panel, so it doesn’t show that notification which caused the problem.
I’m on Plasma 6.7 beta2, so could you check if the notification appears in history in 6.6.5, and how does it look like in there? Thanks.
It doesn’t auto-clear for me. Probably a bug in 6.7. I’ll report the bug. Thanks for the help!