diff --git a/src/Files.App/MainWindow.xaml.cs b/src/Files.App/MainWindow.xaml.cs index 534f7cb7dc5c..89464da8e3ca 100644 --- a/src/Files.App/MainWindow.xaml.cs +++ b/src/Files.App/MainWindow.xaml.cs @@ -213,7 +213,7 @@ async Task PerformNavigation(string payload, string selectItem = null) LeftPaneSelectItemParam = selectItem, }; - if (rootFrame.Content is not null) + if (rootFrame.Content is MainPage) await mainPageViewModel.AddNewTabByParam(typeof(PaneHolderPage), paneNavigationArgs); else rootFrame.Navigate(typeof(MainPage), paneNavigationArgs, new SuppressNavigationTransitionInfo());