Fix checkbox rendering its label unconditionally
This commit is contained in:
parent
40d242bbe1
commit
8b2b302762
1 changed files with 4 additions and 0 deletions
|
|
@ -439,6 +439,10 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if self.label.is_none() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
let label_layout = children.next().unwrap();
|
let label_layout = children.next().unwrap();
|
||||||
let state: &widget::text::State<Renderer::Paragraph> =
|
let state: &widget::text::State<Renderer::Paragraph> =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue