Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ private async Task DebounceAsync(Func<Task> action)
// Wait for quiet period
await Task.Delay(_delayMs, cts.Token).ConfigureAwait(false);

// Execute action if not cancelled
// Execute action if not canceled
if (!cts.Token.IsCancellationRequested)
{
await action().ConfigureAwait(false);
}
}
catch (OperationCanceledException)
{
// Expected when debouncing - a newer call cancelled this one
// Expected when debouncing - a newer call canceled this one
}
catch (Exception ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private void ScheduleDisplayChanged()
}
catch (OperationCanceledException)
{
// Debounce was cancelled by a newer event, this is expected
// Debounce was canceled by a newer event, this is expected
}
catch (Exception ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private async void ColorTemperatureComboBox_SelectionChanged(object sender, Sele
}
else
{
// User cancelled: revert ComboBox to previous selection (property unchanged)
// User canceled: revert ComboBox to previous selection (property unchanged)
// Use flag to prevent reentrant event handling
_isRestoringSelection = true;
try
Expand Down