diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/src/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |