Skip to content

Commit 0a01d85

Browse files
committed
Improve code quality
1 parent 52bb909 commit 0a01d85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ private static List<Result> GetHistoryItems(IEnumerable<HistoryItem> historyItem
13271327

13281328
private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, bool reSelect = true)
13291329
{
1330-
_updateSource?.Cancel();
1330+
await _updateSource?.CancelAsync();
13311331

13321332
App.API.LogDebug(ClassName, $"Start query with text: <{QueryText}>");
13331333

@@ -1906,7 +1906,7 @@ public async Task SetupDialogJumpAsync(nint handle)
19061906
if (DialogJump.DialogJumpWindowPosition == DialogJumpWindowPositions.UnderDialog)
19071907
{
19081908
// Cancel the previous Dialog Jump task
1909-
_dialogJumpSource?.Cancel();
1909+
await _dialogJumpSource?.CancelAsync();
19101910

19111911
// Create a new cancellation token source
19121912
_dialogJumpSource = new CancellationTokenSource();

0 commit comments

Comments
 (0)