mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixed checkbox code in scenarios
This commit is contained in:
@@ -484,7 +484,7 @@ public class TextAlignmentAndDirection : Scenario
|
||||
Enabled = false
|
||||
};
|
||||
|
||||
justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue == CheckState.Checked);
|
||||
justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue != CheckState.Checked);
|
||||
|
||||
justifyOptions.SelectedItemChanged += (s, e) => { ToggleJustify (false, true); };
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ public class TrueColors : Scenario
|
||||
Y = y++,
|
||||
State = canTrueColor ? CheckState.Checked : CheckState.UnChecked,
|
||||
CanFocus = false,
|
||||
Enabled = false,
|
||||
Text = "Driver supports true color "
|
||||
};
|
||||
app.Add (cbSupportsTrueColor);
|
||||
|
||||
Reference in New Issue
Block a user