mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Check if the application is running as administrator ealier
This commit is contained in:
parent
10567fd409
commit
4862a2d816
1 changed files with 7 additions and 7 deletions
|
|
@ -59,13 +59,6 @@ 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
|
||||
{
|
||||
|
|
@ -143,6 +136,13 @@ 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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue