mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Plugins - Added RequiresAdmin boolean
Utilities - Simplified shutdown method signature Utilities - Added restart method with option to elevate Core - Moved actual shutdown/restart logic to UI
This commit is contained in:
1 parent
281c18200a
commit
de5b8e4458
12 files changed
+151
-39
No files matched your search
@@ -40,6 +40,8 @@
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<Button Content="Force garbage collection" Command="{s:Action ForceGarbageCollection}" />
|
||||
<Button Content="Elevate permissions" Command="{s:Action Elevate}" />
|
||||
<Button Content="Restart" Command="{s:Action Restart}" />
|
||||
</StackPanel>
|
||||
</materialDesign:PopupBox>
|
||||
</mde:AppBar>
|
||||
|
||||
@@ -43,5 +43,15 @@ namespace Artemis.UI.Screens.Settings.Debug
|
||||
GC.WaitForPendingFinalizers();
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
public void Elevate()
|
||||
{
|
||||
Core.Utilities.Restart(true, TimeSpan.FromMilliseconds(500));
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
Core.Utilities.Restart(false, TimeSpan.FromMilliseconds(500));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user