mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Temp: compatibility with full pinyin option
This commit is contained in:
parent
f6ae71a99f
commit
e5285b1992
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
|
||||
public (string translation, TranslationMapping map) Translate(string content)
|
||||
{
|
||||
if (_settings.ShouldUseDoublePin)
|
||||
if (_settings.ShouldUsePinyin)
|
||||
{
|
||||
if (!_doublePinCache.ContainsKey(content))
|
||||
{
|
||||
|
|
@ -57,7 +57,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
{
|
||||
if (content[i] >= 0x3400 && content[i] <= 0x9FD5)
|
||||
{
|
||||
string dp = ToDoublePin(resultList[i].ToLower());
|
||||
string dp = _settings.ShouldUseDoublePin ? resultList[i] : ToDoublePin(resultList[i].ToLower());
|
||||
map.AddNewIndex(i, resultBuilder.Length, dp.Length + 1);
|
||||
resultBuilder.Append(' ');
|
||||
resultBuilder.Append(dp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue