mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Plugins UI - Populate list on background prio
This commit is contained in:
1 parent
6fd66ad447
commit
8ede4cb606
1 file changed
+1
-1
@@ -48,7 +48,7 @@ namespace Artemis.UI.Screens.Settings
|
||||
|
||||
this.WhenActivated(d =>
|
||||
{
|
||||
plugins.AddRange(_pluginManagementService.GetAllPlugins());
|
||||
Dispatcher.UIThread.Post(() => plugins.AddRange(_pluginManagementService.GetAllPlugins()), DispatcherPriority.Background);
|
||||
Observable.FromEventPattern<PluginEventArgs>(x => _pluginManagementService.PluginLoaded += x, x => _pluginManagementService.PluginLoaded -= x)
|
||||
.Subscribe(a => plugins.Add(a.EventArgs.Plugin))
|
||||
.DisposeWith(d);
|
||||
|
||||
Reference in new issue
Block a user