-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
const auto globalSettings = _app.Logic().Settings().GlobalSettings(); | ||
const auto windowLimit = globalSettings.ShouldUsePersistedLayout() ? 1 : 0; |
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.
is it important that we keep the logic here separate from _shouldSkipClosingWindows
?
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.
You mean I should just call _shouldSkipClosingWindows
in this function?
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.
that was what I was thinking
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.
Hmm I'm a little hesitant to do that, because I'm currently very unhappy with this approach and I don't want to codify this weird dependency. As an example, it doesn't consider the existence of the quake window right now.
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.
My gut feeling was correct. This PR is completely broken. 😅
The logic didn't work when persistence was enabled and you had 2 windows and closed the 2nd one, or when dragging the last tab out of the only window. ## Validation Steps Performed * 2 windows, close the 2nd one, app doesn't exit ✅ * 1 window, 1 tab, drag the tab out of the window, app doesn't exit ✅
Does what it says on the tin.
Closes #18525
Validation Steps Performed