mirror of
https://github.com/wez/wezterm.git
synced 2024-12-01 00:35:46 +03:00
do a better job at tearing down termwiztermtabs
This avoids lingering on shutdown after showing one of these windows.
This commit is contained in:
parent
a1b9d04709
commit
1ef95b917a
@ -254,7 +254,11 @@ impl Mux {
|
||||
|
||||
pub fn kill_window(&self, window_id: WindowId) {
|
||||
let mut windows = self.windows.borrow_mut();
|
||||
windows.remove(&window_id);
|
||||
if let Some(window) = windows.remove(&window_id) {
|
||||
for tab in window.iter() {
|
||||
self.tabs.borrow_mut().remove(&tab.tab_id());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_window(&self, window_id: WindowId) -> Option<Ref<Window>> {
|
||||
|
Loading…
Reference in New Issue
Block a user