diff --git a/qml/main.qml b/qml/main.qml index 818aaafe..25dfc5ae 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -35,8 +35,14 @@ Window { target: pageLoader.item ignoreUnknownSignals: true onSetSidebaractiveItem: { + if( sidebar.activeScreen == screenId && sidebar.state == "active"){ + sidebar.state = "inactive" + } else { + sidebar.state = "active" + } + sidebar.activeScreen = screenId - sidebar.state = "active" + } } }