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

@@ -383,15 +383,7 @@ namespace Wox.ViewModel
// handle the exclusiveness of plugin using action keyword
RemoveOldQueryResults(query);
_lastQuery = query;
Task.Delay(200, currentCancellationToken).ContinueWith(_ =>
{ // start the progress bar if query takes more than 200 ms and this is the current running query and it didn't finish yet
if (currentUpdateSource == _updateSource && _isQueryRunning)
{
ProgressBarVisibility = Visibility.Visible;
}
}, currentCancellationToken);
_lastQuery = query;
var plugins = PluginManager.ValidPluginsForQuery(query);
Task.Run(() =>