mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Auto-run - Moved to task-based approach (WIP)
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user