Fix for "Pass arguments to Program" issue

This fixes the stupid '"Pass arguments to Program"
not retaining checkbox check bug' error that some
how passed my testing! Fixes #19.

Really sorry to everyone for missing this as I really
did do some extensive testing (or so I thought) but
it looks like I'll need to do another release!
This commit is contained in:
Terry MacDonald 2021-06-07 10:23:59 +12:00
parent 25ecb0bd2a
commit 109a675f04

View File

@ -111,11 +111,13 @@ namespace DisplayMagician.UIForms
// Disable the start program 1 fields // Disable the start program 1 fields
if (cb_start_program_pass_args.Checked) if (cb_start_program_pass_args.Checked)
{ {
myStartProgram.ExecutableArgumentsRequired = true;
// Enable the Executable Arguments Text field // Enable the Executable Arguments Text field
txt_start_program_args.Enabled = true; txt_start_program_args.Enabled = true;
} }
else else
{ {
myStartProgram.ExecutableArgumentsRequired = false;
// Disable the Executable Arguments Text field // Disable the Executable Arguments Text field
txt_start_program_args.Enabled = false; txt_start_program_args.Enabled = false;
} }