mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Check always running as administrator
This commit is contained in:
parent
02de9d617e
commit
dd0899f69a
1 changed files with 7 additions and 0 deletions
|
|
@ -71,6 +71,13 @@ namespace Flow.Launcher
|
|||
return;
|
||||
}
|
||||
|
||||
// Check if the application is running as administrator
|
||||
if (_settings.AlwaysRunAsAdministrator && !Win32Helper.IsAdministrator())
|
||||
{
|
||||
RestartApp(true);
|
||||
return;
|
||||
}
|
||||
|
||||
// Configure the dependency injection container
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue