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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theClueless committed Jan 24, 2020
1 parent 07310c7 commit beefc6a
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 beefc6a

Please sign in to comment.