ignore regular files/links dragging in Normal mode

pull/7/head
Michail Vourlakos 6 years ago
parent dac692bec4
commit 804d3d4d73

@ -145,7 +145,7 @@ DragDrop.DropArea {
}
}
if (!dragResistaner.running && (!latteApplet || (latteApplet && !dragInfo.isLatteTasks))) {
if (!ignoreRegularFiles && !dragResistaner.running && (!latteApplet || (latteApplet && !dragInfo.isLatteTasks))) {
if (!isForeground) {
dragResistaner.start();
}
@ -180,7 +180,7 @@ DragDrop.DropArea {
}
}
if (!dragResistaner.running && (!latteApplet || (latteApplet && !dragInfo.isLatteTasks))) {
if (!ignoreRegularFiles && !dragResistaner.running && (!latteApplet || (latteApplet && !dragInfo.isLatteTasks))) {
if (!isForeground) {
dragResistaner.start();
}
@ -215,7 +215,7 @@ DragDrop.DropArea {
slotAnimationsNeedLength(-1);
}
if (dragInfo.isTask || dockIsHidden || visibilityManager.inSlidingIn || visibilityManager.inSlidingOut) {
if (ignoreRegularFiles && dragInfo.isTask || dockIsHidden || visibilityManager.inSlidingIn || visibilityManager.inSlidingOut) {
return;
}

@ -1755,6 +1755,11 @@ Item {
&& ((root.dragInfo.isPlasmoid && root.dragInfo.isSeparator)
|| (foreDropArea.dragInfo.computationsAreValid && !root.dragInfo.isPlasmoid && !root.dragInfo.onlyLaunchers))
readonly property bool ignoreRegularFiles: !root.editMode
&& (dragInfo.computationsAreValid || foreDropArea.dragInfo.computationsAreValid)
&& !root.dragInfo.isPlasmoid
&& !root.dragInfo.onlyLaunchers
Item{
id: panelBox
anchors.fill: layoutsContainer

Loading…
Cancel
Save