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:
parent
eeda0a7a12
commit
e2803502fe
@ -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") {
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user