diff options
Diffstat (limited to 'examples/layout/src')
-rw-r--r-- | examples/layout/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/layout/src/main.rs b/examples/layout/src/main.rs index 6cf0e570..b626c70d 100644 --- a/examples/layout/src/main.rs +++ b/examples/layout/src/main.rs @@ -86,7 +86,8 @@ impl Application for Layout { let header = row![ text(self.example.title).size(20).font(Font::MONOSPACE), horizontal_space(Length::Fill), - checkbox("Explain", self.explain, Message::ExplainToggled), + checkbox("Explain", self.explain) + .on_toggle(Message::ExplainToggled), pick_list( Theme::ALL, Some(self.theme.clone()), |