From 71af5ef7e0f4eba62f2574da3fa16b398cb20a8c Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 16 Jun 2025 22:54:23 +0800 Subject: [PATCH] Check if the application is running as administrator ealier --- Flow.Launcher/App.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index 5d5f3dd35..7ae18a0eb 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -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 {