From 1ed691b59d3734baed4d0246edb39a81f05bac0e Mon Sep 17 00:00:00 2001 From: Miepee Date: Tue, 30 Aug 2022 13:49:51 +0200 Subject: [PATCH] Fix a few messageboxes not having parents --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs index 82b2e19..73446e2 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs @@ -811,7 +811,7 @@ public partial class MainForm : Form { Application.Instance.Invoke(() => { - MessageBox.Show(Text.ShortcutWarning, Text.WarningWindowTitle, MessageBoxType.Warning); + MessageBox.Show(this, Text.ShortcutWarning, Text.WarningWindowTitle, MessageBoxType.Warning); }); } @@ -876,7 +876,7 @@ public partial class MainForm : Form { Application.Instance.Invoke(() => { - MessageBox.Show(exception.Message, Text.UnhandledException, MessageBoxType.Error); + MessageBox.Show(this, exception.Message, Text.UnhandledException, MessageBoxType.Error); }); } }