ElyDoc: closing a tab takes its export or print dialog, no crash (D-01)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 12:06:47 -04:00
1 parent ec87e28a46
commit 1f4807c81c
5 files changed
+28 -2

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ impl Docs {
self.ask_output(true, cx);
}
fn ask_output(&mut self, print: bool, cx: &mut Context<Self>) {
pub(crate) fn ask_output(&mut self, print: bool, cx: &mut Context<Self>) {
let Some(tab) = self.active_tab() else {
let text = Docs::text(cx, "command.blocked.no_document", &[]);
return self.toast(text, Severity::Warning, cx);