Skip to content

knewfilemenu: add isNewDirNameJobRunning

Akseli Lahtinen requested to merge work/akselmo/namejob-running-api into master

As per discussion here: system/dolphin!747 (comment 903955)

In order to avoid spawning multiple popups for network folders when creating new directories with spamming the Ctrl+Shift+N shortcut in Dolphin, we need to know if the nameJob that spawns those popups is still running.

This adds a simple bool method that returns if the nameJob is still being ran. In Dolphin this can be used to check if there's already job for spawning this popup running, and if there is, we can ignore the shortcut.

Merge request reports