need this elsewhere

This commit is contained in:
SpoinkyNL committed 2020-09-15 19:39:42 +02:00
1 parent 1d789bf23c
commit 906efdac98
5 files changed
+161 -167

No files matched your search

@@ -23,9 +23,11 @@ namespace Artemis.UI.Screens.Settings.Tabs.Devices
protected override void OnActivate()
{
// Take it off the UI thread to avoid freezing on tab change
Task.Run(() =>
Task.Run(async () =>
{
Items.Clear();
await Task.Delay(200);
var instances = _surfaceService.ActiveSurface.Devices.Select(d => _settingsVmFactory.CreateDeviceSettingsViewModel(d)).ToList();
foreach (var deviceSettingsViewModel in instances)
Items.Add(deviceSettingsViewModel);