fix: dismiss SSH copy popup before probe shutdown

This commit is contained in:
GeekMr committed 2026-09-24 22:28:54 +08:00
1 parent 362bf9cae6
commit bcbd712a10
1 file changed
+7 -1
@@ -196,7 +196,13 @@ fn native_ssh_copy_context_menu_preview() {
*result.lock().unwrap() = Some(opened);
drop(pane);
let _ = cx.update_window(handle.into(), |_, window, _| window.remove_window());
let _ = cx.update_window(handle.into(), |_, window, cx| {
for _ in 0..2 {
window.dispatch_keystroke(gpui::Keystroke::parse("escape").unwrap(), cx);
let _ = window.draw(cx);
}
window.remove_window();
});
cx.update(|cx| cx.quit());
})
.detach();