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

Actually use the persisted position with centerOnLaunch:true #15179

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

zadjii-msft
Copy link
Member

Fixes an issue when using both:

    "centerOnLaunch": true,
    "firstWindowPreference": "persistedWindowLayout",

In this case, the Terminal would ignore the persisted location and still just center on launch. This has been really annoying while testing tear-out, as we keep re-opening all my debug windows as a stack on top of each other.

This reverts commit 9313383.
@DHowett DHowett enabled auto-merge (squash) April 14, 2023 15:48
Copy link
Member

@lhecker lhecker left a comment

Choose a reason for hiding this comment

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

While it would be more verbose it would probably be easier to read if you’d use a chain of early returns. It would also allow us to more effectively reorder the checks from most to least likely or from least overhead to highest overhead, whatever is better, if we need to.

@DHowett DHowett merged commit 789b0b0 into main Apr 14, 2023
@DHowett DHowett deleted the dev/migrie/b/restore-with-centerOnLaunch branch April 14, 2023 17:13
@lhecker
Copy link
Member

lhecker commented Apr 14, 2023

Eh? Oh. A new system for auto-merges suddenly appears. 🥲

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.

3 participants