[Folder View] Update "Empty Trash" enabled state for files inside Trash and links to Trash
ClosedPublic

Authored by broulik on Apr 5 2018, 7:18 AM.

Details

Summary

Previously this was only done for files inside Trash. Now also the context menu of a Trash link has correct state.

BUG: 392738
FIXED-IN: 5.12.5

Test Plan

Right-clicked "Trash" on my desktop, "Empty trash" was enabled.
Emptied trash, right-clicked again, "Empty trash" was disabled.
Same for files inside trash:/ when FolderView is set to show trash:/ location

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Apr 5 2018, 7:18 AM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 5 2018, 7:18 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Apr 5 2018, 7:18 AM
hein accepted this revision.Apr 5 2018, 11:58 AM
This revision is now accepted and ready to land.Apr 5 2018, 11:58 AM
This revision was automatically updated to reflect the committed changes.