We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6878c commit 9e1461aCopy full SHA for 9e1461a
Files/App.xaml.cs
@@ -415,7 +415,7 @@ private void OnSuspending(object sender, SuspendingEventArgs e)
415
416
private void SaveSessionTabs() // Enumerates through all tabs and gets the Path property and saves it to AppSettings.LastSessionPages
417
{
418
- AppSettings.LastSessionPages = MainPage.AppInstances.DefaultIfEmpty().Select(x => x != null ? x.Path : ResourceController.GetTranslation("NewTab")).ToArray();
+ AppSettings.LastSessionPages = MainPage.AppInstances.DefaultIfEmpty().Select(tab => tab != null ? tab.Path ?? ResourceController.GetTranslation("NewTab") : ResourceController.GetTranslation("NewTab")).ToArray();
419
}
420
421
// Occurs when an exception is not handled on the UI thread.
0 commit comments