dismiss tooltip flyout when opening panel menus

This commit is contained in:
Damocles 2026-04-12 18:43:51 +02:00
parent 7e359fb730
commit 21f96dc68e
4 changed files with 4 additions and 3 deletions

View file

@ -72,7 +72,7 @@ M.BarSection {
TapHandler {
acceptedButtons: Qt.LeftButton
cursorShape: Qt.PointingHandCursor
onTapped: menuLoader.active = !menuLoader.active
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
}
TapHandler {

View file

@ -96,7 +96,7 @@ M.BarSection {
TapHandler {
cursorShape: Qt.PointingHandCursor
onTapped: menuLoader.active = !menuLoader.active
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
}
Loader {

View file

@ -18,7 +18,7 @@ M.BarIcon {
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: menuLoader.active = !menuLoader.active
onClicked: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
}
Loader {

View file

@ -81,6 +81,7 @@ RowLayout {
if (root._activeMenu && root._activeMenu !== menuLoader)
root._activeMenu.active = false;
menuLoader.active = true;
M.FlyoutState.visible = false;
root._activeMenu = menuLoader;
} else {
iconItem.modelData.secondaryActivate();