Skip to content

Commit 1324658

Browse files
committed
Update App.xaml.cs
1 parent d1953b5 commit 1324658

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Files.App/App.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,17 +463,17 @@ private static void AppUnhandledException(Exception ex, bool shouldShowNotificat
463463

464464
// Restart the app
465465
var userSettingsService = Ioc.Default.GetRequiredService<IUserSettingsService>();
466-
var lastSessionTabList = userSettingsService.PreferencesSettingsService.LastSessionTabList;
466+
var lastSessionTabList = userSettingsService.GeneralSettingsService.LastSessionTabList;
467467

468-
if (userSettingsService.PreferencesSettingsService.LastCrashedTabList?.SequenceEqual(lastSessionTabList) ?? false)
468+
if (userSettingsService.GeneralSettingsService.LastCrashedTabList?.SequenceEqual(lastSessionTabList) ?? false)
469469
{
470470
// Avoid infinite restart loop
471-
userSettingsService.PreferencesSettingsService.LastSessionTabList = null;
471+
userSettingsService.GeneralSettingsService.LastSessionTabList = null;
472472
}
473473
else
474474
{
475475
userSettingsService.AppSettingsService.RestoreTabsOnStartup = true;
476-
userSettingsService.PreferencesSettingsService.LastCrashedTabList = lastSessionTabList;
476+
userSettingsService.GeneralSettingsService.LastCrashedTabList = lastSessionTabList;
477477
}
478478

479479
Window.DispatcherQueue.EnqueueAsync(async () =>

0 commit comments

Comments
 (0)