Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #133 from jjw24/clueless/pinyinFixBug
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
jjw24 authored Jan 26, 2020
2 parents 07310c7 + beefc6a commit 8bb855e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Wox.Infrastructure/UserSettings/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class Settings : BaseModel

internal StringMatcher.SearchPrecisionScore QuerySearchPrecision { get; private set; } = StringMatcher.SearchPrecisionScore.Regular;

[JsonIgnore]
public string QuerySearchPrecisionString
{
get { return QuerySearchPrecision.ToString(); }
Expand Down
3 changes: 2 additions & 1 deletion Wox/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ private void OnStartup(object sender, StartupEventArgs e)
_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);
Expand Down

0 comments on commit 8bb855e

Please sign in to comment.