Fix FluNavigationView noStackPush

Fix FluNavigationView noStackPush to verify if an argument is passed. If true, it is better to set the page has a new one in order to update it with the arguments.
This commit is contained in:
Gaëtan Dezeiraud 2024-11-28 10:51:38 +01:00
parent d13c5a9c2c
commit 282b6ebce0
2 changed files with 2 additions and 2 deletions

View File

@ -1313,7 +1313,7 @@ Item {
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
}
function noStackPush(){
if(loader_content.source.toString() === url){
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
return
}
loader_content.setSource(url,argument)

View File

@ -1314,7 +1314,7 @@ Item {
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
}
function noStackPush(){
if(loader_content.source.toString() === url){
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
return
}
loader_content.setSource(url,argument)