[PR #596] [MERGED] Focus main window after child window closes #1055

Open
opened 2026-01-29 16:25:08 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SabreTools/MPF/pull/596
Author: @Deterous
Created: 11/3/2023
Status: Merged
Merged: 11/3/2023
Merged by: @mnadareski

Base: masterHead: ui-sucks


📝 Commits (1)

  • 4c9a7e3 Focus main window after child window closes

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 MPF.UI.Core/Windows/MainWindow.xaml.cs (+3 -0)

📄 Description

Occasionally, the main window hides behind another application after the options window or disc information window is closed.
To replicate current problem:

  1. Go to Options
  2. Go to the Paths tab, then click on a ... button so that the windows explorer window pops up
  3. Close this window, then close the options window
  4. The Main MPF window gets hidden behind previously opened application.

This attempts to solve the problem, but feels like a band-aid solution.
Open to other ideas.


🔄 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/SabreTools/MPF/pull/596 **Author:** [@Deterous](https://github.com/Deterous) **Created:** 11/3/2023 **Status:** ✅ Merged **Merged:** 11/3/2023 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `ui-sucks` --- ### 📝 Commits (1) - [`4c9a7e3`](https://github.com/SabreTools/MPF/commit/4c9a7e3830d6ff590767baa09445d8d9f0f6b873) Focus main window after child window closes ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `MPF.UI.Core/Windows/MainWindow.xaml.cs` (+3 -0) </details> ### 📄 Description Occasionally, the main window hides behind another application after the options window or disc information window is closed. To replicate current problem: 1. Go to Options 2. Go to the Paths tab, then click on a `...` button so that the windows explorer window pops up 3. Close this window, then close the options window 4. The Main MPF window gets hidden behind previously opened application. This attempts to solve the problem, but feels like a band-aid solution. Open to other ideas. --- <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-29 16:25:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#1055