Merge pull request #30 from someperson/runfix

Added null check to fix problem with run flag
This commit is contained in:
itsmattkc 2021-07-12 08:27:50 -07:00 committed by GitHub
commit d32dff5beb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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