broulik created this revision. broulik added reviewers: Plasma, hein. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. broulik requested review of this revision.
REVISION 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 REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D11944 AFFECTED FILES containments/desktop/plugins/folder/foldermodel.cpp containments/desktop/plugins/folder/foldermodel.h To: broulik, #plasma, hein Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart