Revert "Check if the application is running as administrator ealier"

This reverts commit 4862a2d816.
This commit is contained in:
Jack251970 2025-06-16 22:53:35 +08:00
parent 4862a2d816
commit 4416efece8

View file

@ -59,6 +59,13 @@ namespace Flow.Launcher
// Initialize settings
_settings.WMPInstalled = WindowsMediaPlayerHelper.IsWindowsMediaPlayerInstalled();
// Check if the application is running as administrator
if (_settings.AlwaysRunAsAdministrator && !Win32Helper.IsAdministrator())
{
RestartApp(true);
return;
}
// Configure the dependency injection container
try
{
@ -136,13 +143,6 @@ namespace Flow.Launcher
return;
}
// Check if the application is running as administrator
if (_settings.AlwaysRunAsAdministrator && !Win32Helper.IsAdministrator())
{
RestartApp(true);
return;
}
// Initialize system language before changing culture info
Internationalization.InitSystemLanguageCode();