From e59ebad0df9f3ed7e3448fc725fbb451bae169f7 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Fri, 7 Jan 2022 08:49:15 +0100 Subject: [PATCH] Fix another invalid UI thread access --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs index c515725..af0cff6 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs @@ -637,10 +637,9 @@ namespace AM2RLauncher ProcessStartInfo startInfo = new ProcessStartInfo(); - log.Info("Is the environment textbox null or whitespace = " + string.IsNullOrWhiteSpace(customEnvVarTextBox.Text)); - string envVars = ""; Application.Instance.Invoke(new Action(() => envVars = customEnvVarTextBox.Text)); + log.Info("Is the environment textbox null or whitespace = " + string.IsNullOrWhiteSpace(envVars)); if (!string.IsNullOrWhiteSpace(envVars)) {