1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-27 20:34:03 +00:00

Added early return for checked button on single option (#486)

This commit is contained in:
Matthew Edell 2023-02-17 00:53:49 -05:00 committed by GitHub
parent b6398794c9
commit 10221973fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,6 +323,7 @@ impl<'a> App<'a> {
if !o.checked {
o.checked = true;
} else {
if is_single_option { return; }
o.checked = false;
}
} else if is_single_option {
@ -340,6 +341,7 @@ impl<'a> App<'a> {
if !o.checked {
o.checked = true;
} else {
if is_single_option { return; }
o.checked = false;
}
} else if is_single_option {