Skip to content

Commit 1859e12

Browse files
authored
Fix: Fixed infinite restart loop (#12166)
1 parent 9583bda commit 1859e12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Files.App/App.xaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,12 +474,12 @@ private static void AppUnhandledException(Exception ex, bool shouldShowNotificat
474474
{
475475
userSettingsService.AppSettingsService.RestoreTabsOnStartup = true;
476476
userSettingsService.GeneralSettingsService.LastCrashedTabList = lastSessionTabList;
477-
}
478477

479-
Window.DispatcherQueue.EnqueueAsync(async () =>
480-
{
481-
await Launcher.LaunchUriAsync(new Uri("files-uwp:"));
482-
}).Wait(1000);
478+
Window.DispatcherQueue.EnqueueAsync(async () =>
479+
{
480+
await Launcher.LaunchUriAsync(new Uri("files-uwp:"));
481+
}).Wait(1000);
482+
}
483483
Process.GetCurrentProcess().Kill();
484484
}
485485

0 commit comments

Comments
 (0)