mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 22:50:14 +03:00
respect Add launchers only in Tasks area
This commit is contained in:
parent
86e645c720
commit
cfc9143632
@ -106,8 +106,8 @@ Item {
|
||||
property bool isLatteTasks: backDropArea.dragInfo.isLatteTasks || foreDropArea.dragInfo.isLatteTasks
|
||||
property bool onlyLaunchers: backDropArea.dragInfo.onlyLaunchers || foreDropArea.dragInfo.onlyLaunchers
|
||||
|
||||
// onIsPlasmoidChanged: console.log("isPlasmoid :: " + backDropArea.dragInfo.isPlasmoid + " _ " + foreDropArea.dragInfo.isPlasmoid );
|
||||
// onEnteredChanged: console.log("entered :: " + backDropArea.dragInfo.entered + " _ " + foreDropArea.dragInfo.entered );
|
||||
// onIsPlasmoidChanged: console.log("isPlasmoid :: " + backDropArea.dragInfo.isPlasmoid + " _ " + foreDropArea.dragInfo.isPlasmoid );
|
||||
// onEnteredChanged: console.log("entered :: " + backDropArea.dragInfo.entered + " _ " + foreDropArea.dragInfo.entered );
|
||||
}
|
||||
|
||||
property bool containsOnlyPlasmaTasks: false //this is flag to indicate when from tasks only a plasma based one is found
|
||||
@ -1739,10 +1739,12 @@ Item {
|
||||
DragDropArea {
|
||||
id: foreDropArea
|
||||
anchors.fill: parent
|
||||
visible: latteView && latteView.containsDrag && root.dragInfo.isPlasmoid && !root.dragInfo.isSeparator
|
||||
visible: latteView && latteView.containsDrag
|
||||
&& ((root.dragInfo.isPlasmoid && !root.dragInfo.isSeparator)
|
||||
|| (root.addLaunchersInTaskManager && root.dragInfo.onlyLaunchers))
|
||||
isForeground: true
|
||||
|
||||
/* Rectangle {
|
||||
/* Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "blue"
|
||||
opacity: 0.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user