Skip to content

Commit 282b6eb

Browse files
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.
1 parent d13c5a9 commit 282b6eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Qt5/imports/FluentUI/Controls/FluNavigationView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ Item {
13131313
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
13141314
}
13151315
function noStackPush(){
1316-
if(loader_content.source.toString() === url){
1316+
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
13171317
return
13181318
}
13191319
loader_content.setSource(url,argument)

src/Qt6/imports/FluentUI/Controls/FluNavigationView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ Item {
13141314
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
13151315
}
13161316
function noStackPush(){
1317-
if(loader_content.source.toString() === url){
1317+
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
13181318
return
13191319
}
13201320
loader_content.setSource(url,argument)

0 commit comments

Comments
 (0)