summaryrefslogtreecommitdiffstats
path: root/examples/editor/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/editor/src/main.rs')
-rw-r--r--examples/editor/src/main.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/editor/src/main.rs b/examples/editor/src/main.rs
index 068782ba..d55f9bdf 100644
--- a/examples/editor/src/main.rs
+++ b/examples/editor/src/main.rs
@@ -150,11 +150,9 @@ impl Editor {
self.is_dirty.then_some(Message::SaveFile)
),
horizontal_space(),
- toggler(
- Some("Word Wrap"),
- self.word_wrap,
- Message::WordWrapToggled
- ),
+ toggler(self.word_wrap)
+ .label("Word Wrap")
+ .on_toggle(Message::WordWrapToggled),
pick_list(
highlighter::Theme::ALL,
Some(self.theme),