From 93045035092d8653c4082e842b5d1afd6d160060 Mon Sep 17 00:00:00 2001 From: John Thomson Date: Fri, 26 Apr 2024 12:19:43 -0500 Subject: [PATCH] Fix "attach debugger now" message Now comes up for ctrl-Alt, not for command line args --- src/BloomExe/Program.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/BloomExe/Program.cs b/src/BloomExe/Program.cs index 226ddaa6aef1..010fa20944fa 100644 --- a/src/BloomExe/Program.cs +++ b/src/BloomExe/Program.cs @@ -139,9 +139,9 @@ static int Main(string[] args1) // which for now is not supported in 5.5+. GraphicsManager.GtkVersionInUse = GraphicsManager.GtkVersion.Gtk3; -#if DEBUG - //MessageBox.Show("Attach debugger now"); -#endif + if ((Control.ModifierKeys & (Keys.Control | Keys.Alt)) == (Keys.Control | Keys.Alt)) + MessageBox.Show("Attach debugger now"); + // Bloom has several command line scenarios, without a coherent system for them. // The following is how we will do things from now on, and things can be moved // into this as time allows. See CommandLineOptions.cs. @@ -311,9 +311,6 @@ static int Main(string[] args1) { if (IsLocalizationHarvestingLaunch(args)) LocalizationManager.IgnoreExistingEnglishTranslationFiles = true; - else - // This allows us to debug things like interpreting a URL. - MessageBox.Show("Attach debugger now"); } var harvest = Environment.GetEnvironmentVariable("HARVEST_FOR_LOCALIZATION"); if (