Pass "ShouldUsePinyin" to StringMatcher

Flag is used in method "ShouldUsePinyin()" to avoid calling Alphabet
service. Otherwise, tests applying to StringMatcher.FuzzySearch() would
fail because the pinyin helper library fails to initialize.
This commit is contained in:
SysC0mp
2019-12-09 20:57:59 +01:00
parent 78f243651e
commit 49c5c5bbde
3 changed files with 19 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ namespace Wox
Alphabet.Initialize(_settings);
StringMatcher.UserSettingSearchPrecision = _settings.QuerySearchPrecision;
StringMatcher.ShouldUsePinyin = _settings.ShouldUsePinyin;
PluginManager.LoadPlugins(_settings.PluginSettings);
_mainVM = new MainViewModel(_settings);