1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +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,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"
}
}
}