diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/multi_window/src/main.rs | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/examples/multi_window/src/main.rs b/examples/multi_window/src/main.rs index b9f0514c..18536bdf 100644 --- a/examples/multi_window/src/main.rs +++ b/examples/multi_window/src/main.rs @@ -57,9 +57,9 @@ enum WindowMessage {  }  impl Application for Example { +    type Executor = executor::Default;      type Message = Message;      type Theme = Theme; -    type Executor = executor::Default;      type Flags = ();      fn new(_flags: ()) -> (Self, Command<Message>) { @@ -251,10 +251,6 @@ impl Application for Example {          })      } -    fn close_requested(&self, window: window::Id) -> Self::Message { -        Message::Window(window, WindowMessage::CloseWindow) -    } -      fn view(&self, window_id: window::Id) -> Element<Message> {          if let Some(window) = self.windows.get(&window_id) {              let focus = window.focus; @@ -342,6 +338,10 @@ impl Application for Example {              .center_y()              .into()      } + +    fn close_requested(&self, window: window::Id) -> Self::Message { +        Message::Window(window, WindowMessage::CloseWindow) +    }  }  const PANE_ID_COLOR_UNFOCUSED: Color = Color::from_rgb( | 
