diff options
| author | 2023-07-12 12:23:18 -0700 | |
|---|---|---|
| committer | 2023-07-12 12:23:18 -0700 | |
| commit | 633f405f3f78bc7f82d2b2061491b0e011137451 (patch) | |
| tree | 5ebfc1f45d216a5c14a90492563599e6969eab4d /examples/lazy | |
| parent | 41836dd80d0534608e7aedfbf2319c540a23de1a (diff) | |
| parent | 21bd51426d900e271206f314e0c915dd41065521 (diff) | |
| download | iced-633f405f3f78bc7f82d2b2061491b0e011137451.tar.gz iced-633f405f3f78bc7f82d2b2061491b0e011137451.tar.bz2 iced-633f405f3f78bc7f82d2b2061491b0e011137451.zip  | |
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
# Conflicts:
#	Cargo.toml
#	core/src/window/icon.rs
#	core/src/window/id.rs
#	core/src/window/position.rs
#	core/src/window/settings.rs
#	examples/integration/src/main.rs
#	examples/integration_opengl/src/main.rs
#	glutin/src/application.rs
#	native/src/subscription.rs
#	native/src/window.rs
#	runtime/src/window/action.rs
#	src/lib.rs
#	src/window.rs
#	winit/Cargo.toml
#	winit/src/application.rs
#	winit/src/icon.rs
#	winit/src/settings.rs
#	winit/src/window.rs
Diffstat (limited to 'examples/lazy')
| -rw-r--r-- | examples/lazy/Cargo.toml | 3 | ||||
| -rw-r--r-- | examples/lazy/src/main.rs | 12 | 
2 files changed, 5 insertions, 10 deletions
diff --git a/examples/lazy/Cargo.toml b/examples/lazy/Cargo.toml index 79255c25..e03e89a9 100644 --- a/examples/lazy/Cargo.toml +++ b/examples/lazy/Cargo.toml @@ -6,5 +6,4 @@ edition = "2021"  publish = false  [dependencies] -iced = { path = "../..", features = ["debug"] } -iced_lazy = { path = "../../lazy" } +iced = { path = "../..", features = ["debug", "lazy"] } diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs index 6512106f..c6baa6a1 100644 --- a/examples/lazy/src/main.rs +++ b/examples/lazy/src/main.rs @@ -1,10 +1,9 @@  use iced::theme;  use iced::widget::{ -    button, column, horizontal_space, pick_list, row, scrollable, text, +    button, column, horizontal_space, lazy, pick_list, row, scrollable, text,      text_input,  };  use iced::{Element, Length, Sandbox, Settings}; -use iced_lazy::lazy;  use std::collections::HashSet;  use std::hash::Hash; @@ -214,12 +213,9 @@ impl Sandbox for App {          column![              scrollable(options).height(Length::Fill),              row![ -                text_input( -                    "Add a new option", -                    &self.input, -                    Message::InputChanged, -                ) -                .on_submit(Message::AddItem(self.input.clone())), +                text_input("Add a new option", &self.input) +                    .on_input(Message::InputChanged) +                    .on_submit(Message::AddItem(self.input.clone())),                  button(text(format!("Toggle Order ({})", self.order)))                      .on_press(Message::ToggleOrder)              ]  | 
