Focus main window after child window closes (#596)

This commit is contained in:
Deterous
2023-11-04 04:23:11 +13:00
committed by GitHub
parent 267c0e3184
commit 6dffb80609

View File

@@ -227,6 +227,8 @@ namespace MPF.UI.Core.Windows
ShowInTaskbar = true,
WindowStartupLocation = WindowStartupLocation.CenterOwner,
};
discInformationWindow.Closed += delegate { this.Activate(); };
bool? result = discInformationWindow.ShowDialog();
// Copy back the submission info changes, if necessary
@@ -263,6 +265,7 @@ namespace MPF.UI.Core.Windows
WindowStartupLocation = WindowStartupLocation.CenterOwner,
};
optionsWindow.Closed += delegate { this.Activate(); };
optionsWindow.Closed += OnOptionsUpdated;
optionsWindow.Show();
}