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:
parent
04ed33d516
commit
2f24091f5f
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user