mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Improve code quality
This commit is contained in:
parent
52bb909f0b
commit
0a01d85f40
1 changed files with 2 additions and 2 deletions
|
|
@ -1327,7 +1327,7 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, bool reSelect = true)
|
||||
{
|
||||
_updateSource?.Cancel();
|
||||
await _updateSource?.CancelAsync();
|
||||
|
||||
App.API.LogDebug(ClassName, $"Start query with text: <{QueryText}>");
|
||||
|
||||
|
|
@ -1906,7 +1906,7 @@ namespace Flow.Launcher.ViewModel
|
|||
if (DialogJump.DialogJumpWindowPosition == DialogJumpWindowPositions.UnderDialog)
|
||||
{
|
||||
// Cancel the previous Dialog Jump task
|
||||
_dialogJumpSource?.Cancel();
|
||||
await _dialogJumpSource?.CancelAsync();
|
||||
|
||||
// Create a new cancellation token source
|
||||
_dialogJumpSource = new CancellationTokenSource();
|
||||
|
|
|
|||
Loading…
Reference in a new issue