diff options
author | 2024-02-01 13:51:11 +0100 | |
---|---|---|
committer | 2024-02-01 13:51:11 +0100 | |
commit | 759f0e922598504705b543185bc7140a652b726a (patch) | |
tree | a7f2eb4ddee8127ace2e7002091c502d22bbb1c6 /examples/game_of_life/src/main.rs | |
parent | b95f3ab12f863f4de668e4e6f8a75b7d3acdf2b7 (diff) | |
parent | b0d40d70a041ffaa07d94bea8fba11589c239725 (diff) | |
download | iced-759f0e922598504705b543185bc7140a652b726a.tar.gz iced-759f0e922598504705b543185bc7140a652b726a.tar.bz2 iced-759f0e922598504705b543185bc7140a652b726a.zip |
Merge pull request #2109 from avsaase/feat/checkbox-disabled
Add option to disable checkbox
Diffstat (limited to 'examples/game_of_life/src/main.rs')
-rw-r--r-- | examples/game_of_life/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index 56f7afd5..b386b0cd 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -185,7 +185,8 @@ fn view_controls<'a>( row![ playback_controls, speed_controls, - checkbox("Grid", is_grid_enabled, Message::ToggleGrid) + checkbox("Grid", is_grid_enabled) + .on_toggle(Message::ToggleGrid) .size(16) .spacing(5) .text_size(16), |