Auto-run - Moved to task-based approach (WIP)

This commit is contained in:
SpoinkyNL committed 2021-01-24 23:16:13 +01:00
1 parent b4458ddefd
commit 097a5275e2
12 files changed
+424 -43

No files matched your search

@@ -8,12 +8,16 @@ namespace Artemis.UI.Screens.Settings.Debug
{
public class DebugViewModel : Conductor<Screen>.Collection.OneActive
{
private readonly ICoreService _coreService;
public DebugViewModel(
ISettingsService settingsService,
ICoreService coreService,
RenderDebugViewModel renderDebugViewModel,
DataModelDebugViewModel dataModelDebugViewModel,
LogsDebugViewModel logsDebugViewModel)
{
_coreService = coreService;
Items.Add(renderDebugViewModel);
Items.Add(dataModelDebugViewModel);
Items.Add(logsDebugViewModel);
@@ -51,7 +55,7 @@ namespace Artemis.UI.Screens.Settings.Debug
public void Restart()
{
Core.Utilities.Restart(false, TimeSpan.FromMilliseconds(500));
Core.Utilities.Restart(_coreService.IsElevated, TimeSpan.FromMilliseconds(500));
}
}
}