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: {
|
||||
if (window.visibility === 2) {
|
||||
switchPage("Installed")
|
||||
nav.setNavigation("Installed")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,15 +46,7 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
function onPageChanged(name) {
|
||||
|
||||
ScreenPlay.setTrackerSendEvent("navigation", name)
|
||||
|
||||
if (!navActive)
|
||||
return
|
||||
|
||||
navigation.changePage(name)
|
||||
|
||||
function setNavigation(name){
|
||||
var i = 0
|
||||
for (; i < navArray.length; i++) {
|
||||
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 {
|
||||
id: row
|
||||
anchors.fill: parent
|
||||
|
Loading…
Reference in New Issue
Block a user