From 1535930521fa257f78fb014b01172893ce1fe1c5 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 7 Jan 2013 16:58:27 -0800 Subject: [PATCH] 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. --- native/atom_application.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/atom_application.mm b/native/atom_application.mm index c2f2ed2ab..8eab6bfc5 100644 --- a/native/atom_application.mm +++ b/native/atom_application.mm @@ -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];