mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Cache for pinyin https://github.com/Wox-launcher/Wox/issues/1189
This commit is contained in:
@@ -83,19 +83,6 @@ namespace Wox.Plugin.Program
|
||||
});
|
||||
Task.WaitAll(t1, t2);
|
||||
|
||||
var characters = w.Select(p => p.Name)
|
||||
.Concat(w.Select(p => p.Description))
|
||||
.Concat(u.Select(p => p.DisplayName))
|
||||
.Concat(u.Select(p => p.Description));
|
||||
|
||||
Parallel.ForEach(characters, c =>
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(c) && Alphabet.ContainsChinese(c))
|
||||
{
|
||||
Alphabet.PinyinComination(c);
|
||||
}
|
||||
});
|
||||
|
||||
lock (IndexLock)
|
||||
{
|
||||
_win32s = w;
|
||||
|
||||
Reference in New Issue
Block a user