diff options
| author | 2023-09-10 00:34:21 +0200 | |
|---|---|---|
| committer | 2023-09-10 00:34:21 +0200 | |
| commit | b8e5693a3089d728b4f8d4b3b0b7197202ebd732 (patch) | |
| tree | 79a9f84f9920525657fbe03d53ce33bab09053d7 /examples/modal/src | |
| parent | 956512338905bac0b156fdaf16fe3c3e07e97a84 (diff) | |
| parent | a3489e4af960388e9f73988b88df361022a654a4 (diff) | |
| download | iced-b8e5693a3089d728b4f8d4b3b0b7197202ebd732.tar.gz iced-b8e5693a3089d728b4f8d4b3b0b7197202ebd732.tar.bz2 iced-b8e5693a3089d728b4f8d4b3b0b7197202ebd732.zip  | |
Merge branch 'master' into explicit-text-caching
Diffstat (limited to '')
| -rw-r--r-- | examples/modal/src/main.rs | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index aa9107d0..c050d3cc 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -1,12 +1,14 @@ +use iced::event::{self, Event};  use iced::executor;  use iced::keyboard; -use iced::subscription::{self, Subscription};  use iced::theme;  use iced::widget::{      self, button, column, container, horizontal_space, pick_list, row, text,      text_input,  }; -use iced::{Alignment, Application, Command, Element, Event, Length, Settings}; +use iced::{ +    Alignment, Application, Command, Element, Length, Settings, Subscription, +};  use modal::Modal;  use std::fmt; @@ -49,7 +51,7 @@ impl Application for App {      }      fn subscription(&self) -> Subscription<Self::Message> { -        subscription::events().map(Message::Event) +        event::listen().map(Message::Event)      }      fn update(&mut self, message: Message) -> Command<Message> {  | 
