@@ -109,7 +109,7 @@ public class DefaultGeolocation : INotifyPropertyChanged, IGeolocation
#region INotifyPropertyChanged
- public event PropertyChangedEventHandler? PropertyEdited;
+ public event PropertyChangedEventHandler? PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
@@ -94,8 +94,7 @@ namespace InABox.Core
try
- var file = Directory.EnumerateFiles(CachePath, "*.formdocument")
- .FirstOrDefault();
+ var file = Directory.Exists(CachePath) ? Directory.EnumerateFiles(CachePath, "*.formdocument").FirstOrDefault() : null;
var isActive = !String.IsNullOrWhiteSpace(file);
if (isActive != previouslyActive)