Show existing hidden window when re-opening

Previously if Atom was opened to an already opened
path but that window was hidden then a new window
would be opened when instead the existing window
should be unhidden.
This commit is contained in:
Kevin Sawicki 2013-01-07 16:58:27 -08:00
parent ebe7ff7090
commit 1535930521

View File

@ -139,7 +139,7 @@
- (void)open:(NSString *)path pidToKillWhenWindowCloses:(NSNumber *)pid {
for (NSWindow *window in [self windows]) {
if ([window isVisible] && ![window isExcludedFromWindowsMenu]) {
if (![window isExcludedFromWindowsMenu]) {
AtomWindowController *controller = [window windowController];
if ([path isEqualToString:controller.pathToOpen]) {
[window makeKeyAndOrderFront:nil];