-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Identify the main Brackets window the right way #136
Comments
Comment by redmunds This code is much better than the "main window is the first in list" code that I wrote, and I verified that the bug is fixed (but I had to update recipe to repro). I was going to suggest that Since this code is shared on both platforms, I also did some testing on Mac and I found this bug related to those variables:
Results Expected I searched through the menus and couldn't find any other problems, but I also looked through the Mac-specific code and it seems to check First, I think this code should be fixed on the Mac. After that's done, then the variables may need to be renamed and better documented to make this code easier to understand. Done with initial review. |
Comment by RaymondLim The issue you found on Mac can also be reproduced in sprint 15 build. And the menu item is from Mac resource file and its corresponding command may not be implemented for popup windows. So please log a new issue for that since it has nothing to do with the "closing window in the wrong order" issue. You can skip step 3, just mention that switching to the second window will disable Brackets > About Brackets menu items. |
Comment by redmunds Yes, I know that bug was not caused by your change. But the code needs to be cleaned up to make it easier to understand. It the variable names were more clear, this bug may not have been introduced. And since the code cleanup effects the other bug, it's easiest to do it all at once. If you are busy with other tasks, then I can fix it. |
Comment by RaymondLim You're welcome to fix the new issue. I did look into it this morning, but still don't know how to get it working w/o a crash when the main window is closed. And fixing this doesn't really clean up any code, it is just adding the missing command for the popup window. Not quite sure you want me to rename the two variables with this pull request. Let me know if you want to. |
Comment by redmunds I think it would be relatively easy to fix the Mac using Usage of m_Browser and m_BrowserId didn't change, but I added documentation of how they are used. @RaymondLim You're code is ready to merge. So, please review my changes and give me comments, or merge. |
Comment by RaymondLim It looks fine with your comments on m_Browser and m_BrowserId. You can merge it now. |
Comment by redmunds Merging. |
Issue by RaymondLim
Monday Mar 18, 2013 at 20:11 GMT
Originally opened as adobe#220
This fixes #3047. The old code was on the wrong assumption that the first item in the window map is always the main window and therefore we were sometimes sending "close window" messages incorrectly to the main window.
RaymondLim included the following code: https://github.com/adobe/brackets-shell/pull/220/commits
The text was updated successfully, but these errors were encountered: