1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Plugins UI - Populate list on background prio

This commit is contained in:
Robert 2022-08-04 23:27:46 +02:00
parent 6fd66ad447
commit 8ede4cb606

View File

@ -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);