-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
closeTab warning (When more then one pane is open) #5874
closeTab warning (When more then one pane is open) #5874
Conversation
Syncing fork to repo
…resources) Tooltip Text from Resources.resw Files
…resources)-1 Tooltip Text for New Tab Split Button
Again, I can't figure out why there are unrelated commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's a few comments to help you out 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops. accidentally approved. ugh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Largely, I agree with everything that @carlos-zamora mentioned.
Sorry, I just copied them over and forgot about the comments. It's fixed now! Thanks, @carlos-zamora!
Alright, a few things are going on here:
If you fix those three things, I think you should be in a position where this works (functionally speaking). There's still some more code-health related things that would be nice to fix but they'll be found during a code review. Let's just focus on getting this working first 😊 Idk if you'll have to expose |
Okay thanks. I’ll look into it.
|
Sure! The click on the Close button is handled in |
Alright. Thanks.
From: Dustin L. Howett<mailto:[email protected]>
Sent: May 19, 2020 20:31
To: microsoft/terminal<mailto:[email protected]>
Cc: Eric Tian<mailto:[email protected]>; Author<mailto:[email protected]>
Subject: Re: [microsoft/terminal] closeTab warning (When more then one pane is open) (#5874)
Sure! The click on the Close button is handled in TerminalPage::_OnTabCloseRequested. That function is called when the user wants to close a tab with the [x].
|
Added show close tab, an if statement, and primary button click.
Can anyone review this? @zadjii-msft @carlos-zamora? Thx! |
Hello? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm blocking this based off of two concerns:
- Primarily, there need to be a couple code fixes here.
- I think before this merges I want to have a resolution of how a setting to disable this would work. I've discussed this a bit more in Prompt before closing pane with multiple client apps #6549 (comment), but not really taken to any conclusions. I don't think that you need to be the person to implement all the appropriate settings, but I want to make sure that we've got our eye on that before we merge this.
Thanks @zadjii-msft
Definitely |
New misspellings found, please review:
To accept these changes, run the following commands
✏️ Contributor please read this
See the
|
@zadjii-msft @carlos-zamora Okay, this is ready for review. Thanks |
This reverts commit c044f53.
@carlos-zamora @zadjii-msft Alright. I think we're all set. |
Since the commits are a mess and I don't like it, and because it's inactive, I'll close this pr and make a new one later. |
This has now moved to #7077 |
Summary of the Pull Request
Presents a dialogue when more then one pane is open.
References
Connected to #5301
PR Checklist
Detailed Description of the Pull Request / Additional comments
I can't seem to figure out the if statement (
_CloseFocusTabPane
) so if anyone can help, that would be great!