mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
faster startup time for control panel plugin
This commit is contained in:
@@ -36,15 +36,18 @@ namespace Wox.Plugin.ControlPanel
|
||||
}
|
||||
}
|
||||
|
||||
var characters = controlPanelItems.Select(i => i.LocalizedString)
|
||||
.Concat(controlPanelItems.Select(i => i.InfoTip));
|
||||
|
||||
Parallel.ForEach(characters, c =>
|
||||
Task.Run(() =>
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(c) && Alphabet.ContainsChinese(c))
|
||||
var characters = controlPanelItems.Select(i => i.LocalizedString)
|
||||
.Concat(controlPanelItems.Select(i => i.InfoTip));
|
||||
|
||||
Parallel.ForEach(characters, c =>
|
||||
{
|
||||
Alphabet.PinyinComination(c);
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(c) && Alphabet.ContainsChinese(c))
|
||||
{
|
||||
Alphabet.PinyinComination(c);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user