Added Config::setDropIndicatorAllowedFunc()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user