diff options
| author | Eric Yue <jiacheng.yue@foxmail.com> | 2026-09-21 01:33:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-20 19:33:11 +0200 |
| commit | f090ce95d05d2e7811869be93f9a23bf4ac2c3af (patch) | |
| tree | d5a1a447fd6043056e5ea3cb1a9bd0419957e57b /src/client/shell/state.rs | |
| parent | f10df75c8a5f1b5e5f90689c3a8ceb6758366e05 (diff) | |
fix: confirm closing the last tab in the tui (#4409)
* fix: confirm closing the last tab in the tui
refs #4379
* docs: clarify last-tab worktree confirmation in translations
refs #4379
---------
Co-authored-by: JJ Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/client/shell/state.rs')
| -rw-r--r-- | src/client/shell/state.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/shell/state.rs b/src/client/shell/state.rs index 55a065d5..2eaf18bf 100644 --- a/src/client/shell/state.rs +++ b/src/client/shell/state.rs @@ -563,8 +563,15 @@ pub(super) struct ClientContextMenuItem { } #[derive(Debug)] +pub(super) struct ClientTabCloseConfirmation { + pub(super) tab_id: String, + pub(super) workspace: WorkspaceNavigationTarget, +} + +#[derive(Debug)] pub(super) struct ClientConfirmCloseOverlay { pub(super) workspace_id: String, + pub(super) tab_target: Option<ClientTabCloseConfirmation>, pub(super) title: String, pub(super) detail: String, } |
