Skip to content

Commit cf3fc6a

Browse files
committed
Fix build issue & Adjust indent
1 parent 07bcd5d commit cf3fc6a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,13 +1339,13 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13391339
}*/
13401340

13411341
_ = Task.Delay(200, _updateSource.Token).ContinueWith(_ =>
1342-
{
1343-
// start the progress bar if query takes more than 200 ms and this is the current running query and it didn't finish yet
1344-
if (_progressQuery != null && _progressQuery == query)
1345-
{
1346-
ProgressBarVisibility = Visibility.Visible;
1347-
}
1348-
},
1342+
{
1343+
// start the progress bar if query takes more than 200 ms and this is the current running query and it didn't finish yet
1344+
if (_progressQuery != null && _progressQuery == query)
1345+
{
1346+
ProgressBarVisibility = Visibility.Visible;
1347+
}
1348+
},
13491349
_updateSource.Token,
13501350
TaskContinuationOptions.NotOnCanceled,
13511351
TaskScheduler.Default);
@@ -1357,7 +1357,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13571357
{
13581358
tasks = plugins.Select(plugin => plugin.Metadata.HomeDisabled switch
13591359
{
1360-
false => QueryTaskAsync(plugin, _updateSource.Token),
1360+
false => QueryTaskAsync(plugin, true, _updateSource.Token),
13611361
true => Task.CompletedTask
13621362
}).ToArray();
13631363

@@ -1371,7 +1371,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
13711371
{
13721372
tasks = plugins.Select(plugin => plugin.Metadata.Disabled switch
13731373
{
1374-
false => QueryTaskAsync(plugin, _updateSource.Token),
1374+
false => QueryTaskAsync(plugin, false, _updateSource.Token),
13751375
true => Task.CompletedTask
13761376
}).ToArray();
13771377
}
@@ -1405,7 +1405,7 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
14051405
}
14061406

14071407
// Local function
1408-
async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
1408+
async Task QueryTaskAsync(PluginPair plugin, bool isHomeQuery, CancellationToken token)
14091409
{
14101410
App.API.LogDebug(ClassName, $"Wait for querying plugin <{plugin.Metadata.Name}>");
14111411

@@ -1482,7 +1482,7 @@ private async Task<Query> ConstructQueryAsync(string queryText, IEnumerable<Cust
14821482
{
14831483
if (string.IsNullOrWhiteSpace(queryText))
14841484
{
1485-
return QueryBuilder.Build(string.Empty, PluginManager.NonGlobalPlugins);
1485+
return QueryBuilder.Build(string.Empty, string.Empty, PluginManager.NonGlobalPlugins);
14861486
}
14871487

14881488
var queryBuilder = new StringBuilder(queryText);

0 commit comments

Comments
 (0)