mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
prefill pinyin cache for program plugin #858
This commit is contained in:
parent
5cdc3e694f
commit
5eadaa08aa
1 changed files with 13 additions and 0 deletions
|
|
@ -71,6 +71,19 @@ namespace Wox.Plugin.Program
|
|||
_uwps = UWP.All();
|
||||
});
|
||||
Task.WaitAll(t1, t2);
|
||||
|
||||
var characters = _win32s.Select(p => p.Name)
|
||||
.Concat(_win32s.Select(p => p.Description))
|
||||
.Concat(_uwps.Select(p => p.DisplayName))
|
||||
.Concat(_uwps.Select(p => p.Description));
|
||||
|
||||
Parallel.ForEach(characters, c =>
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(c) && Alphabet.ContainsChinese(c))
|
||||
{
|
||||
Alphabet.PinyinComination(c);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public Control CreateSettingPanel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue