diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/src/lib.rs | 2 | ||||
-rw-r--r-- | runtime/src/window.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b4a5e819..7e46593a 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -60,7 +60,7 @@ pub enum Action<T> { }, /// Run a widget operation. - Widget(Box<dyn widget::Operation<()> + Send>), + Widget(Box<dyn widget::Operation<()>>), /// Run a clipboard action. Clipboard(clipboard::Action), diff --git a/runtime/src/window.rs b/runtime/src/window.rs index b04e5d59..3e53dd55 100644 --- a/runtime/src/window.rs +++ b/runtime/src/window.rs @@ -175,7 +175,7 @@ pub fn events() -> Subscription<(Id, Event)> { /// Subscribes to all [`Event::Closed`] occurrences in the running application. pub fn open_events() -> Subscription<Id> { event::listen_with(|event, _status, id| { - if let crate::core::Event::Window(Event::Closed) = event { + if let crate::core::Event::Window(Event::Opened { .. }) = event { Some(id) } else { None |