Compare commits

..

2 Commits

Author SHA1 Message Date
zhuzichu
a8ca78f3f1
Merge pull request #576 from gaetandezeiraud/fix-flunavigationview-nostackpush
Fix FluNavigationView noStackPush
2024-12-01 19:52:11 +08:00
Gaëtan Dezeiraud
282b6ebce0 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.
2024-11-28 10:51:38 +01:00
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)