Index: sources/gui/qml/components/MainMenu.qml =================================================================== diff -u -ra1386c22cd8c011a3fc1dc8dac2136cbee7890c2 -r9c7a790376d07de7ddaa67e39d47102d68693c87 --- sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision a1386c22cd8c011a3fc1dc8dac2136cbee7890c2) +++ sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 9c7a790376d07de7ddaa67e39d47102d68693c87) @@ -39,6 +39,7 @@ property bool hasLogo : false property int currentIndex : 0 property string currentTitle : titles[currentIndex] + property bool disable : false /*! * \brief Emits when a menu item pressed @@ -167,10 +168,11 @@ // hidden animation to hide the menu nicely. Behavior on y { PropertyAnimation { /*duration: 500; easing.type: Easing.OutBounce*/ } } onHiddenChanged: { + let isHidden = hidden || disable if ( position === MainMenu.Position.Top ) { - y = hidden ? - Variables.mainMenuHeight : 0 + y = isHidden ? - Variables.mainMenuHeight : 0 } else { - y = Variables.applicationHeight - (hidden ? 0 : Variables.mainMenuHeight) + y = Variables.applicationHeight - (isHidden ? 0 : Variables.mainMenuHeight) } } }