diff options
author | 2024-09-11 00:30:56 +0200 | |
---|---|---|
committer | 2024-09-11 00:30:56 +0200 | |
commit | 07c9a2a8a99ecd60c8cd0d1699d1d2c2e4a46c76 (patch) | |
tree | 2f244426201bba5be7c3d3d41f237d062ce722a6 /examples/editor/src | |
parent | 770176a4e19ef3db257daa311860b54a4ec14bc1 (diff) | |
parent | 6e4970c01a9e42621a0ded340dcdccb4204ab5d2 (diff) | |
download | iced-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.rs | 8 |
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), |