Currently, when you have the desktop in the Desktop layout, if you drop 10 jpg files into the desktop, it creates 10 menus at the same position.
When you have the desktop in the Folder layout, if you drop 10 jpg files into the desktop, it calls KIO::setApplicationActions() 10 times.
What does this improve?
- Do not create KIO::MimetypeJob for each file
- Do not call DropJob::setApplicationActions() too many times/ create too many menus for each file.
My idea is that, when you drop files into the desktop:
- If they have the same mimetype -> we add actions support this mimetype.
- If not -> we only show the action from KIO::DropJob and only actions support different mimetypes at the same time like Add icon...
Require: D26484
CCBUG: 415917