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)) {