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:
parent
b6398794c9
commit
10221973fa
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue