[PR #11485] [MERGED] Dismiss any open content dialog when window is moved #28606

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11485
Author: @mpela81
Created: 10/12/2021
Status: ✅ Merged
Merged: 10/12/2021
Merged by: @undefined

Base: main ← Head: fix/11425_dismiss_dialog


📝 Commits (3)

  • 1445d94 Dismiss any open content dialog when window is moved
  • cc2c50e Merge remote-tracking branch 'upstream/main' into fix/11425_dismiss_dialog
  • 1783705 code review

📊 Changes

4 files changed (+20 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppLogic.cpp (+12 -0)
📝 src/cascadia/TerminalApp/AppLogic.h (+2 -0)
📝 src/cascadia/TerminalApp/AppLogic.idl (+1 -0)
📝 src/cascadia/WindowsTerminal/AppHost.cpp (+5 -0)

📄 Description

Summary of the Pull Request

When the window moves, hide any visible content dialog (only one can be shown at a time) and ensure its associated async operation is terminated.

#10922 dismisses any open popups when the window is moved or any scroll viewer scrolls. However, if you just close a Popup from the UI tree, the async operation associated to a ContentDialog (started with dialog.ShowAsync) does not terminate. The dialog lock that prevents opening multiple dialogs at the same time is not released, and no further dialog can be shown.
Explicitly dismissing the only visible ContentDialog using its Hide method terminates the operation.

Validation Steps Performed

Manual tests, open up dialogs and move the window (like in #11425)

References #10922
Closes #11425


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11485 **Author:** [@mpela81](https://github.com/mpela81) **Created:** 10/12/2021 **Status:** ✅ Merged **Merged:** 10/12/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `fix/11425_dismiss_dialog` --- ### 📝 Commits (3) - [`1445d94`](https://github.com/microsoft/terminal/commit/1445d9474cb8e828374e2527abef58b1e5147f32) Dismiss any open content dialog when window is moved - [`cc2c50e`](https://github.com/microsoft/terminal/commit/cc2c50e5431d01fd7e4a7c674aeb732b324a66f4) Merge remote-tracking branch 'upstream/main' into fix/11425_dismiss_dialog - [`1783705`](https://github.com/microsoft/terminal/commit/17837057f1311eebc0c281ce4c5494f433ee6d3b) code review ### 📊 Changes **4 files changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+12 -0) 📝 `src/cascadia/TerminalApp/AppLogic.h` (+2 -0) 📝 `src/cascadia/TerminalApp/AppLogic.idl` (+1 -0) 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+5 -0) </details> ### 📄 Description ## Summary of the Pull Request When the window moves, hide any visible content dialog (only one can be shown at a time) and ensure its associated async operation is terminated. #10922 dismisses any open popups when the window is moved or any scroll viewer scrolls. However, if you just close a Popup from the UI tree, the async operation associated to a ContentDialog (started with `dialog.ShowAsync`) does not terminate. The dialog lock that prevents opening multiple dialogs at the same time is not released, and no further dialog can be shown. Explicitly dismissing the only visible ContentDialog using its `Hide` method terminates the operation. ## Validation Steps Performed Manual tests, open up dialogs and move the window (like in #11425) References #10922 Closes #11425 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:29:36 +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#28606