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,12 +46,16 @@ Item {
|
|||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
const popouts = root.bar.popouts;
|
||||
if (popouts.hasCurrent) {
|
||||
popouts.hasCurrent = false;
|
||||
} else {
|
||||
popouts.currentName = "activewindow";
|
||||
popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y;
|
||||
popouts.hasCurrent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
id: icon
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue