Implemented profile creation, deletion and activation

This commit is contained in:
Robert committed 2019-11-20 19:25:29 +01:00
1 parent 66f7dc94c8
commit 97907c97eb
17 files changed
+217 -49

No files matched your search

@@ -38,13 +38,13 @@ namespace Artemis.Core.Plugins.Abstract
{
lock (this)
{
if (profile == null)
throw new ArgumentNullException(nameof(profile));
if (profile == ActiveProfile)
return;
ActiveProfile?.Deactivate();
ActiveProfile = profile;
ActiveProfile.Activate();
ActiveProfile?.Activate();
}
OnActiveProfileChanged();