From 97218046a1d7ad214534173fa3ec2740c396f0d6 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 8 Jun 2026 18:35:25 +0800 Subject: [PATCH] Add early return after setting SystemLanguageCode Ensure method exits immediately after finding a matching language code to prevent unnecessary checks and potential overwriting of SystemLanguageCode. --- Flow.Launcher.Core/Resource/Internationalization.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Flow.Launcher.Core/Resource/Internationalization.cs b/Flow.Launcher.Core/Resource/Internationalization.cs index c13fb5c0be7..48543c9c6f2 100644 --- a/Flow.Launcher.Core/Resource/Internationalization.cs +++ b/Flow.Launcher.Core/Resource/Internationalization.cs @@ -59,6 +59,7 @@ public static void InitSystemLanguageCode() string.Equals(languageCode, fullName, StringComparison.OrdinalIgnoreCase)) { SystemLanguageCode = languageCode; + return; } }