mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-05 22:04:34 +03:00
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:
parent
ebe7ff7090
commit
1535930521
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user