From 174132625314dc5fcbbe14b4b641ebce66cacdfb Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 26 Sep 2023 21:39:41 -0400 Subject: [PATCH] Force information window to top --- CHANGELIST.md | 1 + MPF.Core/Data/Options.cs | 2 +- MPF.UI.Core/ViewModels/MainViewModel.cs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index dc4f3a48..7e41ce30 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -10,6 +10,7 @@ - Handle invalid characters when changing program - Fix options not saving on update - Combine build scripts +- Force information window to top ### 2.6.4 (2023-09-25) diff --git a/MPF.Core/Data/Options.cs b/MPF.Core/Data/Options.cs index 05a38eea..cfcd4b80 100644 --- a/MPF.Core/Data/Options.cs +++ b/MPF.Core/Data/Options.cs @@ -119,7 +119,7 @@ namespace MPF.Core.Data /// This is a hidden setting public bool ShowDebugViewMenuItem { - get { return GetBooleanSetting(_settings, "ShowDebugViewMenuItem", false); } + get { return GetBooleanSetting(_settings, "ShowDebugViewMenuItem", true); } set { _settings["ShowDebugViewMenuItem"] = value.ToString(); } } diff --git a/MPF.UI.Core/ViewModels/MainViewModel.cs b/MPF.UI.Core/ViewModels/MainViewModel.cs index a75934c8..662ab707 100644 --- a/MPF.UI.Core/ViewModels/MainViewModel.cs +++ b/MPF.UI.Core/ViewModels/MainViewModel.cs @@ -1247,6 +1247,7 @@ namespace MPF.UI.Core.ViewModels var discInformationWindow = new DiscInformationWindow(this.Options, submissionInfo) { Owner = this.Parent, + Topmost = true, WindowStartupLocation = WindowStartupLocation.CenterOwner, }; bool? result = discInformationWindow.ShowDialog();