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