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
4416efece8
commit
71af5ef7e0
1 changed files with 3 additions and 3 deletions
|
|
@ -56,9 +56,6 @@ namespace Flow.Launcher
|
|||
|
||||
public App()
|
||||
{
|
||||
// Initialize settings
|
||||
_settings.WMPInstalled = WindowsMediaPlayerHelper.IsWindowsMediaPlayerInstalled();
|
||||
|
||||
// Check if the application is running as administrator
|
||||
if (_settings.AlwaysRunAsAdministrator && !Win32Helper.IsAdministrator())
|
||||
{
|
||||
|
|
@ -66,6 +63,9 @@ namespace Flow.Launcher
|
|||
return;
|
||||
}
|
||||
|
||||
// Initialize settings
|
||||
_settings.WMPInstalled = WindowsMediaPlayerHelper.IsWindowsMediaPlayerInstalled();
|
||||
|
||||
// Configure the dependency injection container
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue