Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gtk): add close confirmation for tabs #4235

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leigholiver
Copy link
Contributor

On the discord this bit of feedback came up from here

8323 # - ghostty has tabs (imitating gnome-terminal); when closing a tab with a
8324 #   running process (e.g., a hung vttest), ghostty does not prompt about the 
8325 #   process to be killed.

This PR adds confirmation to the places where tabs are closed directly

Fixes: #4234

.split => |s| check(s.top_left) or check(s.bottom_right),
};
}
}.check;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm aware of this pattern but its not something we generally do within this project.

I don't think we need to wrap this in a struct at all and can just make it a top-level (non-pub) fn.

@leigholiver leigholiver force-pushed the leigh/gtk-confirm-close branch from 63e99ee to 3892d68 Compare January 1, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No confirmation when closing tab (GTK)
2 participants