mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Implemented profile creation, deletion and activation
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user