Make window::close return and introduce Task::discard
This commit is contained in:
parent
7740c35a2a
commit
01aa84e41a
5 changed files with 24 additions and 7 deletions
|
|
@ -1209,9 +1209,11 @@ fn run_action<P, C>(
|
|||
|
||||
*is_window_opening = true;
|
||||
}
|
||||
window::Action::Close(id) => {
|
||||
window::Action::Close(id, channel) => {
|
||||
let _ = window_manager.remove(id);
|
||||
let _ = ui_caches.remove(&id);
|
||||
|
||||
let _ = channel.send(id);
|
||||
}
|
||||
window::Action::GetOldest(channel) => {
|
||||
let id =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue