Skip to content

CmdPal: Ensure DockWindow property cleans up after itself#46303

Merged
zadjii-msft merged 4 commits intomainfrom
dev/jpolasek/b/46302-cmdpal-unsubscribe-closed-dock-window-from-messanger
Mar 24, 2026
Merged

CmdPal: Ensure DockWindow property cleans up after itself#46303
zadjii-msft merged 4 commits intomainfrom
dev/jpolasek/b/46302-cmdpal-unsubscribe-closed-dock-window-from-messanger

Conversation

@jiripolasek
Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This PR improves cleanup of DockWindow after itself (since it can be created and destroyed multiple times during app lifetime).

  • Disposes its ViewModel (which it creates).
  • Unregisters itself explicitly from WeakReferenceMessenger.
  • Ensures that ShellPage closes the dock window when disposed and can't spawn more.

PR Checklist

  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

- Disposes its ViewModel (which it creates).
- Unregisters itself explicitly from WeakReferenceMessenger.
- Ensures that ShellPage closes the dock window when disposed and can't spawn more.
@jiripolasek jiripolasek added Product-Command Palette Refers to the Command Palette utility CmdPal - Dock Issues related to the Command Palette Dock 0.98.1 labels Mar 19, 2026
@jiripolasek jiripolasek changed the title Dock: Ensure DockWindow property cleans up after itself CmdPal: Ensure DockWindow property cleans up after itself Mar 19, 2026
@zateutsch zateutsch requested a review from zadjii-msft March 24, 2026 18:14
@zadjii-msft zadjii-msft enabled auto-merge (squash) March 24, 2026 18:30
@zadjii-msft zadjii-msft merged commit 1a9fcdc into main Mar 24, 2026
15 checks passed
@michaeljolley michaeljolley deleted the dev/jpolasek/b/46302-cmdpal-unsubscribe-closed-dock-window-from-messanger branch March 24, 2026 22:24
zateutsch added a commit that referenced this pull request Mar 25, 2026
Cherry-picked commits:
- Make KBM Editor pinnable (#46482)
- CmdPal: Fix missing primary context command for late-bound items (#46131)
- CmdPal: Ensure DockWindow property cleans up after itself (#46303)
- CmdPal: Hotfix commonCallbacks array initial count to prevent negative number (#46215)
- CmdPal: Fix missing app context menu actions on the main page (#46293)
- CmdPal: Fix dock popup XamlRoot handling on DockControl (#46305)
- CmdPal: Reduce DockWindow backdrop switching and visual artifacts (#46309)
- Always On Top: The opacity should be able to configure the hotkey individually (#46410)
- [OOBE] Ensure the Settings button on the SCOOBE page opens Home, not a blank page (#46203)
- CmdPal: Fix scroller scrolling and down glyph (#46447)
- [Settings] Decouple Settings.UI.Library from PowerDisplay.Lib to fix (#46325)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.98.1 CmdPal - Dock Issues related to the Command Palette Dock Product-Command Palette Refers to the Command Palette utility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dock: zombie Dock window is still subscribed to the messenger

4 participants