bar/activewindow: toggle when not show on hover
This commit is contained in:
parent
521cd4079e
commit
5d492539d1
1 changed files with 7 additions and 3 deletions
|
|
@ -46,9 +46,13 @@ Item {
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
const popouts = root.bar.popouts;
|
const popouts = root.bar.popouts;
|
||||||
popouts.currentName = "activewindow";
|
if (popouts.hasCurrent) {
|
||||||
popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y;
|
popouts.hasCurrent = false;
|
||||||
popouts.hasCurrent = true;
|
} else {
|
||||||
|
popouts.currentName = "activewindow";
|
||||||
|
popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y;
|
||||||
|
popouts.hasCurrent = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue