Skip to content

Commit be0c1ad

Browse files
committed
Switch to ThreadPool thread to keep UI responsive when waiting update lock
1 parent 14cdf8a commit be0c1ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,9 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
12081208
return;
12091209
}
12101210

1211+
// Switch to ThreadPool thread to keep UI responsive when waiting update lock
1212+
await TaskScheduler.Default;
1213+
12111214
await _updateLock.WaitAsync();
12121215
try
12131216
{

0 commit comments

Comments
 (0)