This dims cut items similar to how Dolphin does it.
Details
Cut a couple of files on my desktop, they got dimmed. If I copied something else they showed up again.
Also, cutting files from Dolphin updated FolderView right away.
I noticed that KUrlMimeData::urlsFromMimeData (or something else) seems quite slow, when I cut an entire folder in Dolphin (it is fine within FolderView from what I can tell), even if it's one we don't show in a FolderView, it can lead to a noticeable (as in a second or two) hickup in Plasma :/
Code is adapted from Dolphin.
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Lint Skipped - Unit
Unit Tests Skipped
containments/desktop/plugins/folder/foldermodel.cpp | ||
---|---|---|
1714 | I think this check down here is wrong/not working properly |
I'm wondering if this should be done in KIO/KDirModel ... does Dolphin do this per-view too?
containments/desktop/plugins/folder/foldermodel.cpp | ||
---|---|---|
1714 | Can you elaborate? |
Kai, ping? IIRC we determined KDirModel does this already and this is misguided somehow?
Apparently it's not neeed, Wayland seems broken, probably doesn't get notified of QClipboard changes but this needs separate investigation