Added Config::setDropIndicatorAllowedFunc()

This commit is contained in:
Sergio Martins
2022-02-11 19:49:23 +00:00
parent 76cbb760ed
commit 54bf24d5d4
5 changed files with 94 additions and 1 deletions

View File

@@ -160,6 +160,11 @@ bool DropIndicatorOverlayInterface::dropIndicatorVisible(DropLocation dropLoc) c
return false;
}
if (auto dropIndicatorAllowedFunc = Config::self().dropIndicatorAllowedFunc()) {
if (!dropIndicatorAllowedFunc(dropLoc, source, target))
return false;
}
return true;
}