From ebcd7d59155269d2c54c18bb47a05636e953218c Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sun, 13 Jul 2025 19:01:59 +0800 Subject: [PATCH] Fix ShouldTranslate() logic - Check settings or it won't work as expected --- Flow.Launcher.Infrastructure/PinyinAlphabet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/PinyinAlphabet.cs b/Flow.Launcher.Infrastructure/PinyinAlphabet.cs index 29b20a021..55c3decd0 100644 --- a/Flow.Launcher.Infrastructure/PinyinAlphabet.cs +++ b/Flow.Launcher.Infrastructure/PinyinAlphabet.cs @@ -77,7 +77,7 @@ namespace Flow.Launcher.Infrastructure public bool ShouldTranslate(string stringToTranslate) { // If a string has Chinese characters, we don't need to translate it to pinyin. - return !WordsHelper.HasChinese(stringToTranslate); + return _settings.ShouldUsePinyin && !WordsHelper.HasChinese(stringToTranslate); } public (string translation, TranslationMapping map) Translate(string content)