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

Fix persistence of the last closed window #18623

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Feb 24, 2025

Does what it says on the tin.

Closes #18525

Validation Steps Performed

  • Enable persistence
  • Close the last window
  • Persisted ✅

@lhecker lhecker added Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Priority-2 A description (P2) Area-Windowing Window frame, quake mode, tearout labels Feb 24, 2025
@DHowett
Copy link
Member

DHowett commented Feb 24, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Comment on lines +761 to +762
const auto globalSettings = _app.Logic().Settings().GlobalSettings();
const auto windowLimit = globalSettings.ShouldUsePersistedLayout() ? 1 : 0;
Copy link
Member

Choose a reason for hiding this comment

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

is it important that we keep the logic here separate from _shouldSkipClosingWindows?

Copy link
Member Author

Choose a reason for hiding this comment

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

You mean I should just call _shouldSkipClosingWindows in this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Open windows from a previous session" not working due to session not being saved at exit
3 participants