mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-07 01:37:08 +02:00
Add feature to disable sidebar
This commit is contained in:
parent
eeda0a7a12
commit
e2803502fe
@ -189,6 +189,14 @@ ApplicationWindow {
|
||||
|
||||
property bool ignoreWorkshopBanner: false
|
||||
|
||||
onSetSidebarActive: {
|
||||
if(active){
|
||||
sidebar.state = "active"
|
||||
} else {
|
||||
sidebar.state = "inactive"
|
||||
}
|
||||
}
|
||||
|
||||
onSetSidebaractiveItem: {
|
||||
|
||||
if (type === "video") {
|
||||
|
@ -9,6 +9,7 @@ Item {
|
||||
|
||||
signal setSidebaractiveItem(var screenId, var type)
|
||||
signal setNavigationItem(var pos)
|
||||
signal setSidebarActive(var active)
|
||||
|
||||
property bool refresh: false
|
||||
|
||||
@ -146,6 +147,7 @@ Item {
|
||||
}
|
||||
}
|
||||
function onPageChanged(name) {
|
||||
setSidebarActive(false)
|
||||
if (name === "All") {
|
||||
installedListFilter.sortByRoleType("All")
|
||||
navAll.state = "active"
|
||||
|
Loading…
Reference in New Issue
Block a user