Fix documentation for open_events()
This commit is contained in:
parent
ca93c41789
commit
e9aa276a93
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ pub fn events() -> Subscription<(Id, Event)> {
|
|||
})
|
||||
}
|
||||
|
||||
/// Subscribes to all [`Event::Closed`] occurrences in the running application.
|
||||
/// Subscribes to all [`Event::Opened`] occurrences in the running application.
|
||||
pub fn open_events() -> Subscription<Id> {
|
||||
event::listen_with(|event, _status, id| {
|
||||
if let crate::core::Event::Window(Event::Opened { .. }) = event {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue