From 3582bd433fbaa29599759a6aae102011af3bb90b Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:47:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=BE=E4=B8=8D=E5=88=B0=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E8=B5=84=E6=BA=90=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/Helper/LocalizationHelper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MaaWpfGui/Helper/LocalizationHelper.cs b/src/MaaWpfGui/Helper/LocalizationHelper.cs index 533ff378a0..5aafc1b258 100644 --- a/src/MaaWpfGui/Helper/LocalizationHelper.cs +++ b/src/MaaWpfGui/Helper/LocalizationHelper.cs @@ -119,6 +119,11 @@ namespace MaaWpfGui.Helper /// The string. public static string GetString(string key, string culture = null) { + if (_culture == "pallas") + { + return GetPallasString(); + } + if (!string.IsNullOrEmpty(culture)) { var dictionary = new ResourceDictionary @@ -131,11 +136,6 @@ namespace MaaWpfGui.Helper } } - if (_culture == "pallas") - { - return GetPallasString(); - } - var dictList = Application.Current.Resources.MergedDictionaries; for (int i = dictList.Count - 1; i >= 0; --i) {