Merge pull request #133 from jjw24/clueless/pinyinFixBug

fix
This commit is contained in:
Jeremy Wu 2020-01-26 18:26:08 +09:30 committed by GitHub
commit 8bb855e657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ namespace Wox.Infrastructure.UserSettings
internal StringMatcher.SearchPrecisionScore QuerySearchPrecision { get; private set; } = StringMatcher.SearchPrecisionScore.Regular;
[JsonIgnore]
public string QuerySearchPrecisionString
{
get { return QuerySearchPrecision.ToString(); }

View File

@ -57,7 +57,8 @@ namespace Wox
_settings = _settingsVM.Settings;
_alphabet.Initialize(_settings);
StringMatcher.Instance = new StringMatcher(_alphabet);
_stringMatcher = new StringMatcher(_alphabet);
StringMatcher.Instance = _stringMatcher;
_stringMatcher.UserSettingSearchPrecision = _settings.QuerySearchPrecision;
PluginManager.LoadPlugins(_settings.PluginSettings);