Skip to content

Commit a476294

Browse files
authored
Fix: Fixed an issue where the tab title was empty when opening a folder in a new tab (#15898)
1 parent bb3d154 commit a476294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Helpers/Navigation/NavigationHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
125125
var a1 = navigationParameter is PaneNavigationArguments pna1 ? pna1 : new PaneNavigationArguments() { LeftPaneNavPathParam = navigationParameter as string };
126126
var a2 = navigationArg is PaneNavigationArguments pna2 ? pna2 : new PaneNavigationArguments() { LeftPaneNavPathParam = navigationArg as string };
127127

128-
if (a1 == a2)
128+
if (a1.LeftPaneNavPathParam == a2.LeftPaneNavPathParam && a1.RightPaneNavPathParam == a2.RightPaneNavPathParam)
129129
(tabItem.Header, tabItem.IconSource, tabItem.ToolTipText) = result;
130130
}
131131
}

0 commit comments

Comments
 (0)