-
Notifications
You must be signed in to change notification settings - Fork 973
When closing last window, make sure buffer window is closed so that app exits #13242
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13242 +/- ##
==========================================
- Coverage 55.95% 55.92% -0.03%
==========================================
Files 281 281
Lines 27846 27841 -5
Branches 4569 4565 -4
==========================================
- Hits 15580 15570 -10
- Misses 12266 12271 +5
|
…pp exits. Only on win/linux, since we only handle 'window-all-closed' on those platforms. Fix #13233
95fd6c9
to
97baf96
Compare
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.
Tested and it works great 😄
When closing last window, make sure buffer window is closed so that app exits
When closing last window, make sure buffer window is closed so that app exits
@bsclifton Sorry to bombard you with messages but I believe there may be an error with 12aa8bb . Please do let me know if I'm not understanding something about the codebase. Not sure why the isDarwin() check is being performed. Could you shed some light for my benefit? |
@armaanahluwalia the intention for this fix is to close a hidden window. @petemill introduced an optimization which has a window created but hidden- so that opening a new window is quick. When there are no more visible windows left, the code from this PR closes this hidden buffer window. This allows the program to exit normally when you choose I don't believe this code is related to the bug you're investigating (#8164), since this has been a long standing problem. When choosing |
@bsclifton I do believe the bug is a direct result since opening brave with buffer window disabled fixes 8164. I will double check and get back. |
Only on win/linux, since we only handle 'window-all-closed' on those platforms.
Fix #13233
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Specified on #13233
Reviewer Checklist:
Tests