Profiles - Improved handling of enabling/disabling plugins

This commit is contained in:
Robert committed 2020-06-30 16:16:47 +02:00
1 parent 88a15abc8c
commit c75ce321e2
6 files changed
+50 -17

No files matched your search

+4 -5
View File
@@ -46,6 +46,10 @@ namespace Artemis.Core.Services
_surfaceService = surfaceService;
_profileService = profileService;
_loggingLevel = settingsService.GetSetting("Core.LoggingLevel", LogEventLevel.Debug);
_frameStopWatch = new Stopwatch();
UpdatePluginCache();
ConfigureJsonConvert();
_rgbService.Surface.Updating += SurfaceOnUpdating;
_rgbService.Surface.Updated += SurfaceOnUpdated;
@@ -53,11 +57,6 @@ namespace Artemis.Core.Services
_pluginService.PluginEnabled += (sender, args) => UpdatePluginCache();
_pluginService.PluginDisabled += (sender, args) => UpdatePluginCache();
UpdatePluginCache();
_frameStopWatch = new Stopwatch();
ConfigureJsonConvert();
}
public TimeSpan FrameTime { get; private set; }