Skip to content

Commit

Permalink
Fix: Fixed issue where the app sometimes got stuck on splash screen (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu committed Jul 21, 2023
1 parent 1fda28c commit f6a7445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/MainWindow.xaml.cs
Expand Up @@ -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());
Expand Down

0 comments on commit f6a7445

Please sign in to comment.