[PR #12229] Fix opacity restore for command palette previews #28919

Open
opened 2026-01-31 09:31:38 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12229

State: closed
Merged: Yes


This commit correctly restores the previous opacity when the command palette
preview is cancelled. It includes an additional change in order to make the
AdjustOpacity setter consistent and symmetric with the Opacity getter.

PR Checklist

Validation Steps Performed

  • Open Windows Terminal command palette
  • Choose "Set background opacity..."
  • Cycle through the items without selecting one
  • Press Escape
  • Previous opacity is restored ✅
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12229 **State:** closed **Merged:** Yes --- This commit correctly restores the previous opacity when the command palette preview is cancelled. It includes an additional change in order to make the `AdjustOpacity` setter consistent and symmetric with the `Opacity` getter. ## PR Checklist * [x] Closes #12228 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Open Windows Terminal command palette * Choose "Set background opacity..." * Cycle through the items without selecting one * Press Escape * Previous opacity is restored ✅
claunia added the pull-request label 2026-01-31 09:31:38 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28919