-
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] Invoking "Find in Files" twice closes the modal bar #4439
Comments
Comment by gruehle To |
Comment by rajeshsegu FindInFilesDialog() in FindinFiles.js should be a singleton, only one instance should exist. I don't understand why we keep recreating it instead of just resetting it. Anyway, here is the fix running in my mind: var _currentDialog;
function _isCurrentDialogShowing(){
return _currentDialog && !_currentDialog.closed;
}
function _setCurrentDialog(dialog){
_currentDialog = dialog;
} In _doFindInFiles() method we just should not create another dialog if _isCurrentDialogShowing() is TRUE. Let me know if you guys like the idea, I will be happy to make the change. |
Comment by njx The behavior of the modal bar being recreated all the time is a holdover from old CodeMirror code that we copied when originally creating the various find dialogs. I think you're right that it should probably just be a singleton whose content gets swapped out, but we would need to figure out how to make that work for all the various things that use it (find in files, find/replace, and quick open)--some of them behave a little differently. Needs more thought. |
Comment by njx Similar issue to #4500. Added a backlog item that should address this and other related bugs: https://trello.com/c/q2B82Zuv. Closing as move to backlog. |
Comment by rajeshsegu
I can still take it if you guys are ok. Let me know. |
Issue by gruehle
Friday Aug 16, 2013 at 23:56 GMT
Originally opened as adobe/brackets#4802
Steps to repro
Results
The modal bar closes.
This broke with the new modal bar animation.
The text was updated successfully, but these errors were encountered: