Check always running as administrator

This commit is contained in:
Jack251970 2025-06-13 17:39:21 +08:00
parent 02de9d617e
commit dd0899f69a

View file

@ -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
{