Added null check to fix problem with run flag

This commit is contained in:
Sam Townsend 2021-05-20 19:15:09 -05:00 committed by GitHub
parent a8955f9f4b
commit 01f62fae8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1315,10 +1315,13 @@ namespace Rebuilder
p.Exited += new EventHandler(ProcessExit);
processes.Add(p);
form.run_button.Text = ConfigForm.run_button_kill;
if (patch_config.MultipleInstances)
if (form != null)
{
form.run_additional_button.Visible = true;
form.run_button.Text = ConfigForm.run_button_kill;
if (patch_config.MultipleInstances)
{
form.run_additional_button.Visible = true;
}
}
Log("Game launched successfully");