Skip to content

Commit 6695eb8

Browse files
authored
Merge pull request #362 from duke7553/lampenlampen-feat/Terminal
Prevent Startup Crash
2 parents 13667d8 + 3ef643c commit 6695eb8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Files/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public App()
9090
AppCenter.Start("682666d1-51d3-4e4a-93d0-d028d43baaa0", typeof(Analytics), typeof(Crashes));
9191
localSettings = ApplicationData.Current.LocalSettings;
9292
SetPropertiesFromLocalSettings();
93+
DetectCustomLocations();
9394
PopulatePinnedSidebarItems();
9495
DetectWSLDistros();
9596
QuickLookIntegration();
@@ -342,7 +343,6 @@ private void SetPropertiesFromLocalSettings()
342343
}
343344

344345
this.RequestedTheme = SettingsPages.Personalization.TV.ThemeValue;
345-
DetectCustomLocations();
346346
}
347347

348348
private async void DetectCustomLocations()

Files/Navigation/UniversalPath.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ public string path
1717

1818
set
1919
{
20-
_path = value;
21-
NotifyPropertyChanged("path");
20+
if(value != null)
21+
{
22+
_path = value;
23+
NotifyPropertyChanged("path");
24+
}
2225
}
2326
}
2427
public event PropertyChangedEventHandler PropertyChanged;

0 commit comments

Comments
 (0)