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

[FEATURE] open new tab when closing last tab #650

Open
gander opened this issue Oct 8, 2024 · 4 comments
Open

[FEATURE] open new tab when closing last tab #650

gander opened this issue Oct 8, 2024 · 4 comments

Comments

@gander
Copy link

gander commented Oct 8, 2024

It's really annoying when the app closes after closing the last tab. Sometimes I do a series of tests or operations and I want to close all tabs but not close the app, so I think a useful option would be to open a new empty tab after closing the last tab, which would prevent closing the app. or let closing the last tab not close the app, but it would be more intuitive to open a new tab.

@lukehaas
Copy link
Owner

lukehaas commented Oct 8, 2024

@gander, thanks for raising this. However, I'm not sure if this solution is viable. Imagine rage-clicking 100 times on a close-tab button only for the app to open a new tab each time you do. It would seem like broken behaviour and would likely lead to a lot of bug reports. Essentially, the app would be doing the opposite of what the user is telling it to do.

Maybe a good solution here would be to have a dialog to confirm that the user wants to quit the app whenever the close button is clicked on the last tab? - clicking cancel would keep the app open.

@gander
Copy link
Author

gander commented Oct 8, 2024

@lukehaas the button to close the last tab can also clear it?

ok, then I'll ask for an option in the settings that will make closing the last tab not close the application. You won't have the situation you're afraid of

@lukehaas
Copy link
Owner

lukehaas commented Oct 8, 2024

Being able to close the last tab is not possible because there is no zero tab state; there always needs to be at least one tab.

@gander
Copy link
Author

gander commented Oct 8, 2024

@lukehaas

have a dialog to confirm that the user wants to quit the app whenever the close button is clicked on the last tab

"Three! Pick number three, my lord!" 😅

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

No branches or pull requests

2 participants