1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-07 09:47:07 +02:00

Add feature to disable sidebar

This commit is contained in:
kelteseth 2018-02-22 17:39:23 +01:00
parent eeda0a7a12
commit e2803502fe
2 changed files with 10 additions and 0 deletions

View File

@ -189,6 +189,14 @@ ApplicationWindow {
property bool ignoreWorkshopBanner: false property bool ignoreWorkshopBanner: false
onSetSidebarActive: {
if(active){
sidebar.state = "active"
} else {
sidebar.state = "inactive"
}
}
onSetSidebaractiveItem: { onSetSidebaractiveItem: {
if (type === "video") { if (type === "video") {

View File

@ -9,6 +9,7 @@ Item {
signal setSidebaractiveItem(var screenId, var type) signal setSidebaractiveItem(var screenId, var type)
signal setNavigationItem(var pos) signal setNavigationItem(var pos)
signal setSidebarActive(var active)
property bool refresh: false property bool refresh: false
@ -146,6 +147,7 @@ Item {
} }
} }
function onPageChanged(name) { function onPageChanged(name) {
setSidebarActive(false)
if (name === "All") { if (name === "All") {
installedListFilter.sortByRoleType("All") installedListFilter.sortByRoleType("All")
navAll.state = "active" navAll.state = "active"