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