mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
force pinyin library static constructor initialize #858
This commit is contained in:
@@ -23,6 +23,8 @@ namespace Wox.Infrastructure
|
|||||||
{
|
{
|
||||||
_pinyinStorage = new BinaryStorage<ConcurrentDictionary<string, string[][]>>("Pinyin");
|
_pinyinStorage = new BinaryStorage<ConcurrentDictionary<string, string[][]>>("Pinyin");
|
||||||
PinyinCache = _pinyinStorage.TryLoad(new ConcurrentDictionary<string, string[][]>());
|
PinyinCache = _pinyinStorage.TryLoad(new ConcurrentDictionary<string, string[][]>());
|
||||||
|
// force pinyin library static constructor initialize
|
||||||
|
PinyinHelper.toHanyuPinyinStringArray('T', Format);
|
||||||
});
|
});
|
||||||
Log.Info($"|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<{PinyinCache.Count}>");
|
Log.Info($"|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<{PinyinCache.Count}>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user