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:
parent
6fd66ad447
commit
8ede4cb606
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user