[Widget Explorer] Allow uninstalling user-installed applets
Review Request #125991 - Created Nov. 8, 2015 and submitted
|Kai Uwe Broulik|
The no longer enabled tooltip also contained the uninstall button. This restores the uninstall functionality similar to the wallpaper dialog.
User-installed applets get an uninstall button. I chose to always show it rather than on hover since only a few applets are likely to be uninstallable and I don't want to play the guessing-game, perhaps we should introduce a filter for "User-installed applets" similar to the (less useful) "running" ones. Clicking the button will queue the uninstallation which can be cancelled anytime the dialog is still opened. As soon as the dialog closes, the actual uninstall is executed.
Multiple applets can be enqueued simultaneously.
Installed plasmoid through drag and drop, uninstalled after fixing an uninstall bug (Review 125990)
The tooltip says "Undo uninstall". I just noticed I should probably fade the applet name too.
Showing it always does make sense as long as it affects only a few Plasmoids, yes.
About the undo: I'm wondering if it might make sense - for consistency's sake - to do the undo mechanism similar to undoing the removal of a Plasmoid from the desktop/panel, i.e. via a button in a notification confirming about the completed deinstallation?
Timer stays running after widget explorer has closed. Re-opening it during the grace period allows to cancel uninstall. After 60 seconds the applet is eventually uninstalled.
Revision 2 (+109 -24)