diff --git a/modules/Bluetooth.qml b/modules/Bluetooth.qml index 562962f..558084a 100644 --- a/modules/Bluetooth.qml +++ b/modules/Bluetooth.qml @@ -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 { diff --git a/modules/Network.qml b/modules/Network.qml index 66047ae..c6f854d 100644 --- a/modules/Network.qml +++ b/modules/Network.qml @@ -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 { diff --git a/modules/Power.qml b/modules/Power.qml index a8c7094..cf5add9 100644 --- a/modules/Power.qml +++ b/modules/Power.qml @@ -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 { diff --git a/modules/Tray.qml b/modules/Tray.qml index 160121d..05a20ea 100644 --- a/modules/Tray.qml +++ b/modules/Tray.qml @@ -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();