mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
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:
parent
d373bf0866
commit
6c50f8be6f
6 changed files with 79 additions and 71 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue