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