Skip to content

Commit 5a0744a

Browse files
committed
Prevent Startup Crash
1 parent 9e2f886 commit 5a0744a

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
@@ -84,6 +84,7 @@ public App()
8484
AppCenter.Start("682666d1-51d3-4e4a-93d0-d028d43baaa0", typeof(Analytics), typeof(Crashes));
8585
localSettings = ApplicationData.Current.LocalSettings;
8686
SetPropertiesFromLocalSettings();
87+
DetectCustomLocations();
8788
PopulatePinnedSidebarItems();
8889
DetectWSLDistros();
8990
QuickLookIntegration();
@@ -311,7 +312,6 @@ private void SetPropertiesFromLocalSettings()
311312
}
312313

313314
this.RequestedTheme = SettingsPages.Personalization.TV.ThemeValue;
314-
DetectCustomLocations();
315315
}
316316

317317
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)