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:
parent
02b25e1364
commit
5a36e32fb6
@ -30,6 +30,7 @@ ApplicationWindow {
|
|||||||
onVisibilityChanged: {
|
onVisibilityChanged: {
|
||||||
if (window.visibility === 2) {
|
if (window.visibility === 2) {
|
||||||
switchPage("Installed")
|
switchPage("Installed")
|
||||||
|
nav.setNavigation("Installed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user