Revert window::close producing a window::Id
Instead, subscribing to `window::close_events` is preferable; since most use cases will want to react to the user closing a window as well.
This commit is contained in:
parent
22fc5ce0ea
commit
8b45d620d0
4 changed files with 7 additions and 12 deletions
|
|
@ -1211,10 +1211,9 @@ fn run_action<P, C>(
|
|||
|
||||
*is_window_opening = true;
|
||||
}
|
||||
window::Action::Close(id, channel) => {
|
||||
window::Action::Close(id) => {
|
||||
let _ = window_manager.remove(id);
|
||||
let _ = ui_caches.remove(&id);
|
||||
let _ = channel.send(id);
|
||||
|
||||
events.push((
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue