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

Make CloseWarningDialog async #8117

Merged
1 commit merged into from
Nov 20, 2020
Merged

Make CloseWarningDialog async #8117

1 commit merged into from
Nov 20, 2020

Conversation

rhorber
Copy link
Contributor

@rhorber rhorber commented Oct 30, 2020

The CloseWarningDialog is now "awaitable"/async, as suggested in PR #7871.

As opening the dialog is async, the flag can be reset in the same
method. This way the flag operations occur in the same method. The
event handlers of the buttons became obsolete and are removed.

Validation Steps Performed

Tested manually.

As opening the dialog is async, the flag can be reset in the same
method. This way the flag operations occur in the same method.
Also, the event handler for cancel becomes obsolete.
@zadjii-msft zadjii-msft self-assigned this Nov 2, 2020
Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

This certainly does seem cleaner to me, thanks for doing this!

@zadjii-msft zadjii-msft removed their assignment Nov 20, 2020
@zadjii-msft zadjii-msft added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Task It's a feature request, but it doesn't really need a major design. Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal. labels Nov 20, 2020
Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

I love this. Thanks so much & sorry for the slow review!

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

Oop i did the @zadjii-msft Ctrl+Enter manoeuvre

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Nov 20, 2020
@ghost
Copy link

ghost commented Nov 20, 2020

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@DHowett
Copy link
Member

DHowett commented Nov 20, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ghost ghost merged commit 67dfbd2 into microsoft:main Nov 20, 2020
mpela81 pushed a commit to mpela81/terminal that referenced this pull request Nov 22, 2020
The CloseWarningDialog is now "awaitable"/async, as suggested in PR microsoft#7871.

As opening the dialog is async, the flag can be reset in the same
method. This way the flag operations occur in the same method.  The
event handlers of the buttons became obsolete and are removed.

## Validation Steps Performed
Tested manually.
@rhorber rhorber deleted the refactor/close-dialog branch January 27, 2021 07:44
@rhorber
Copy link
Contributor Author

rhorber commented Jan 27, 2021

Glad I could help. 😊

@ghost
Copy link

ghost commented Jan 28, 2021

🎉Windows Terminal Preview v1.6.10272.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants