diff options
Diffstat (limited to 'gui/components/NavigationDrawer.qml')
-rw-r--r-- | gui/components/NavigationDrawer.qml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gui/components/NavigationDrawer.qml b/gui/components/NavigationDrawer.qml index c0e467c..8e7db8e 100644 --- a/gui/components/NavigationDrawer.qml +++ b/gui/components/NavigationDrawer.qml @@ -7,8 +7,14 @@ import QtQuick.Window 2.0 Rectangle {
id: panel
- function show() { open = true; }
- function hide() { open = false; }
+ function show() {
+ open = true;
+ drawerOn = true;
+ }
+ function hide() {
+ open = false;
+ drawerOn = false;
+ }
function toggle() {
open = open ? false : true;
drawerOn = open;
@@ -93,6 +99,7 @@ Rectangle { function handleClick(mouse) {
if ((_rightEdge && mouse.x < panel.x ) || mouse.x > panel.width) {
open = false;
+ drawerOn = false;
}
}
|