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,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");