mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +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)
|
Task.Run(() =>
|
||||||
.Concat(controlPanelItems.Select(i => i.InfoTip));
|
|
||||||
|
|
||||||
Parallel.ForEach(characters, c =>
|
|
||||||
{
|
{
|
||||||
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