Changed the plugin initialization so it throws an exception if unable to load config file, rather than creating a new config file.

This commit is contained in:
Brett Hewitson 2021-12-09 17:10:07 +10:00
parent d373bf0866
commit 6c50f8be6f
6 changed files with 79 additions and 71 deletions

View file

@ -24,12 +24,9 @@ namespace ServerManagerTool.Plugin.Discord
public ObservableList<ConfigProfile> ConfigProfiles
{
get { return Get<ObservableList<ConfigProfile>>(); }
set { Set(value); }
private set { Set(value); }
}
public override bool HasAnyChanges
{
get => base.HasChanges || (ConfigProfiles?.HasAnyChanges ?? false);
}
public override bool HasAnyChanges => base.HasChanges || ConfigProfiles.HasAnyChanges;
}
}