Check if the application is running as administrator ealier

This commit is contained in:
Jack251970 2025-06-16 22:54:23 +08:00
parent 4416efece8
commit 71af5ef7e0

View file

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