summaryrefslogtreecommitdiffstats
path: root/examples/editor/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-09-11 00:30:56 +0200
committerLibravatar GitHub <noreply@github.com>2024-09-11 00:30:56 +0200
commit07c9a2a8a99ecd60c8cd0d1699d1d2c2e4a46c76 (patch)
tree2f244426201bba5be7c3d3d41f237d062ce722a6 /examples/editor/src
parent770176a4e19ef3db257daa311860b54a4ec14bc1 (diff)
parent6e4970c01a9e42621a0ded340dcdccb4204ab5d2 (diff)
downloadiced-07c9a2a8a99ecd60c8cd0d1699d1d2c2e4a46c76.tar.gz
iced-07c9a2a8a99ecd60c8cd0d1699d1d2c2e4a46c76.tar.bz2
iced-07c9a2a8a99ecd60c8cd0d1699d1d2c2e4a46c76.zip
Merge pull request #2478 from sundaram123krishnan/master
Add Disable Feature to Toggler Widget
Diffstat (limited to 'examples/editor/src')
-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),