fix reference for ignoreRegularFileDragging

pull/7/head
Michail Vourlakos 6 years ago
parent 444daec3a7
commit 7fe42921a8

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

@ -101,6 +101,10 @@ Item {
property bool blurEnabled: plasmoid.configuration.blurEnabled && (!forceTransparentPanel || forcePanelForBusyBackground)
readonly property bool ignoreRegularFilesDragging: !root.editMode
&& (dragInfo.computationsAreValid || foreDropArea.dragInfo.computationsAreValid)
&& !root.dragInfo.isPlasmoid
&& !root.dragInfo.onlyLaunchers
readonly property Item dragInfo: Item {
property bool entered: backDropArea.dragInfo.entered || foreDropArea.dragInfo.entered
property bool isTask: backDropArea.dragInfo.isTask || foreDropArea.dragInfo.isTask
@ -1754,12 +1758,7 @@ Item {
anchors.fill: parent
readonly property bool higherPriority: latteView && latteView.containsDrag
&& ((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
|| (foreDropArea.dragInfo.computationsAreValid && !root.dragInfo.isPlasmoid && !root.dragInfo.onlyLaunchers))
Item{
id: panelBox

Loading…
Cancel
Save