fix(gtk): confirm tab close on close_tab action (#5166)

#4033 introduced a `ctrl-shift-w` binding to close a tab, but it doesn't
respect the `confirm-close-surface` option. Now `ctrl-shift-w` will ask
for confirmation exactly the same as clicking the close button with the
mouse.
pull/5254/head^2
Mitchell Hashimoto 2025-01-20 11:24:01 -08:00 committed by GitHub
commit a977e688cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ fn closeTab(_: *App, target: apprt.Target) !void {
return; return;
}; };
tab.window.closeTab(tab); tab.closeWithConfirmation();
}, },
} }
} }