1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Add better way to toggle sidebar

This commit is contained in:
kelteseth 2017-04-10 16:03:49 +02:00
parent 04ed33d516
commit 2f24091f5f

View File

@ -35,9 +35,15 @@ Window {
target: pageLoader.item
ignoreUnknownSignals: true
onSetSidebaractiveItem: {
sidebar.activeScreen = screenId
if( sidebar.activeScreen == screenId && sidebar.state == "active"){
sidebar.state = "inactive"
} else {
sidebar.state = "active"
}
sidebar.activeScreen = screenId
}
}
}