Skip to content

Commit 8474fc2

Browse files
committed
Code Quality: Added missing SuppressNavigationTransitionInfo
1 parent 0a7fc09 commit 8474fc2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Files.App/UserControls/TabBar/TabBarItem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;
5+
using Microsoft.UI.Xaml.Media.Animation;
56

67
namespace Files.App.UserControls.TabBar
78
{
@@ -60,7 +61,7 @@ public TabBarItemParameter NavigationParameter
6061
_NavigationArguments = value;
6162
if (_NavigationArguments is not null)
6263
{
63-
ContentFrame.Navigate(_NavigationArguments.InitialPageType, _NavigationArguments.NavigationParameter);
64+
ContentFrame.Navigate(_NavigationArguments.InitialPageType, _NavigationArguments.NavigationParameter, new SuppressNavigationTransitionInfo());
6465
}
6566
else
6667
{

src/Files.App/Views/Shells/ModernShellPage.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ protected override void ShellPage_NavigationRequested(object sender, PathNavigat
8282
{
8383
NavPathParam = e.ItemPath,
8484
AssociatedTabInstance = this
85-
});
85+
},
86+
new SuppressNavigationTransitionInfo());
8687
}
8788

8889
protected override void OnNavigationParamsChanged()

0 commit comments

Comments
 (0)