Fix Query builder test (#86)

* Revert base viewModel class to fix tests.
This commit is contained in:
Divyansh Srivastava
2020-04-09 09:41:30 -07:00
committed by GitHub
parent 154e5aab8e
commit 59b0109918
2 changed files with 2 additions and 16 deletions

View File

@@ -13,13 +13,7 @@ namespace Wox.Plugin
[NotifyPropertyChangedInvocator]
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
if (Application.Current.Dispatcher.CheckAccess())
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
else
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}));
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}