Bug 428159 - File-based notification should have 'Delete' action in 'More options...' dropdown
Summary: File-based notification should have 'Delete' action in 'More options...' drop...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.20.1
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-23 21:18 UTC by Max
Modified: 2020-10-31 16:57 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21.0


Attachments
Specifies the location of mentioned menu (18.20 KB, image/png)
2020-10-23 21:18 UTC, Max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2020-10-23 21:18:03 UTC
Created attachment 132674 [details]
Specifies the location of mentioned menu

SUMMARY
Currently there are some useful options, like 'Copy', 'Compress', 'Share' and so on. 
But in case if screenshot was taken badly, and user wants to immediately delete it, there should be such an option in menu dropdown (which is open by button highlighted on attached screenshot).

STEPS TO REPRODUCE
1. Take a screenshot
2. Open 'More options' dropdown of pop-up notification

OBSERVED RESULT
No option to immediately delete taken screenshot

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-10-25 19:02:23 UTC
A good idea.
Comment 2 Kai Uwe Broulik 2020-10-28 15:42:19 UTC
Agreed. I think Move to Trash would be appropriate. I don't want to replicate the whole press Shift to morph it into a Delete entry from Dolphin, however. (Unless we have a standard widget action for that)
Comment 3 Bug Janitor Service 2020-10-29 15:49:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/403
Comment 4 Kai Uwe Broulik 2020-10-29 18:12:23 UTC
Git commit 8b703d005fa10a22bd7adedaa54d34fd4429e642 by Kai Uwe Broulik.
Committed on 29/10/2020 at 16:05.
Pushed by broulik into branch 'master'.

[Notifications] Add "Move to Trash" and "Delete" actions to file menu

So one can, for instance, quickly delete an unwanted screenshot.
It follows the usual Trash context menu actions, i.e. move to trash is only
shown for local files and locations that support moving, Delete is shown for
remote locations or when enabled in settings.

Swapping of the action when holding Shift is not implemented.
FIXED-IN: 5.21.0

M  +1    -0    applets/notifications/CMakeLists.txt
M  +45   -0    applets/notifications/filemenu.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/8b703d005fa10a22bd7adedaa54d34fd4429e642