Skip to content

Commit

Permalink
Merge pull request #576 from gaetandezeiraud/fix-flunavigationview-no…
Browse files Browse the repository at this point in the history
…stackpush

Fix FluNavigationView noStackPush
  • Loading branch information
zhuzichu520 authored Dec 1, 2024
2 parents d13c5a9 + 282b6eb commit a8ca78f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Qt5/imports/FluentUI/Controls/FluNavigationView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Qt6/imports/FluentUI/Controls/FluNavigationView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8ca78f

Please sign in to comment.