1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix navigation item on open from hidden

This commit is contained in:
Elias Steurer 2020-11-28 13:56:51 +01:00
parent 02b25e1364
commit 5a36e32fb6
2 changed files with 13 additions and 9 deletions

View File

@ -30,6 +30,7 @@ ApplicationWindow {
onVisibilityChanged: { onVisibilityChanged: {
if (window.visibility === 2) { if (window.visibility === 2) {
switchPage("Installed") switchPage("Installed")
nav.setNavigation("Installed")
} }
} }

View File

@ -46,15 +46,7 @@ Rectangle {
} }
} }
function onPageChanged(name) { function setNavigation(name){
ScreenPlay.setTrackerSendEvent("navigation", name)
if (!navActive)
return
navigation.changePage(name)
var i = 0 var i = 0
for (; i < navArray.length; i++) { for (; i < navArray.length; i++) {
if (navArray[i].name === name) if (navArray[i].name === name)
@ -65,6 +57,17 @@ Rectangle {
} }
} }
function onPageChanged(name) {
ScreenPlay.setTrackerSendEvent("navigation", name)
if (!navActive)
return
navigation.changePage(name)
setNavigation(name)
}
Row { Row {
id: row id: row
anchors.fill: parent anchors.fill: parent