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 sure to update the maximize button's visual state on launch #5988

Merged
1 commit merged into from
May 21, 2020

Conversation

zadjii-msft
Copy link
Member

Summary of the Pull Request

This is an enormously trivial nit - when we launch maximized, we don't draw the maximize button in the "restore" state.

This PR changes the terminal to manually update the Maximize button on launch, once the titlebar is added to the UI tree.

PR Checklist

@ghost ghost added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. labels May 19, 2020
@zadjii-msft zadjii-msft requested a review from DHowett May 20, 2020 19:52
Comment on lines +209 to +212
// GH#3440 - When the titlebar is loaded (officially added to our UI tree),
// then make sure to update it's visual state to reflect if we're in the
// maximized state on launch.
_titlebar.Loaded([this](auto&&, auto&&) { _OnMaximizeChange(); });
Copy link
Member

Choose a reason for hiding this comment

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

Scary that Loaded hasn't happened yet! Guess it makes sense tho.

@zadjii-msft zadjii-msft added the Needs-Second It's a PR that needs another sign-off label May 21, 2020
@ghost ghost requested review from miniksa, carlos-zamora and leonMSFT May 21, 2020 22:06
@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label May 21, 2020
@ghost
Copy link

ghost commented May 21, 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.

@ghost ghost merged commit 2af722b into master May 21, 2020
@ghost ghost deleted the dev/migrie/b/3440-initialize-the-maximize-btn branch May 21, 2020 23:27
jelster pushed a commit to jelster/terminal that referenced this pull request May 28, 2020
…rosoft#5988)

## Summary of the Pull Request
This is an enormously trivial nit - when we launch maximized, we don't draw the maximize button in the "restore" state.

This PR changes the terminal to manually update the Maximize button on launch, once the titlebar is added to the UI tree.

## PR Checklist
* [x] Closes microsoft#3440
* [x] I work here
* [ ] Tests added/passed
* [n/a] Requires documentation to be updated
@ghost
Copy link

ghost commented Jun 18, 2020

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

Handy links:

DHowett pushed a commit that referenced this pull request Jun 24, 2020
## Summary of the Pull Request
This is an enormously trivial nit - when we launch maximized, we don't draw the maximize button in the "restore" state.

This PR changes the terminal to manually update the Maximize button on launch, once the titlebar is added to the UI tree.

## PR Checklist
* [x] Closes #3440
* [x] I work here
* [ ] Tests added/passed
* [n/a] Requires documentation to be updated

(cherry picked from commit 2af722b)
@ghost
Copy link

ghost commented Jun 30, 2020

🎉Windows Terminal v1.0.1811.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-Bug It either shouldn't be doing this or needs an investigation. Needs-Second It's a PR that needs another sign-off Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Terminal does not open with button displaying "maximized" state
3 participants