activate project only in one place

This commit is contained in:
Riccardo Mottola 2021-02-06 19:55:14 +01:00
parent 963700e3d6
commit dcc9e0ef14
2 changed files with 2 additions and 4 deletions

View file

@ -380,7 +380,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
[[NSNotificationCenter defaultCenter]
postNotificationName:PCActiveProjectDidChangeNotification
object:activeProject];
object:activeProject];
}
}
@ -707,6 +707,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
if (flag)
{
[self setActiveProject: project];
[[project projectWindow] makeKeyAndOrderFront:self];
}
return project;
@ -751,7 +752,6 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
if (filePath != nil)
{
[self openProjectAt:filePath makeActive:YES];
[[[self activeProject] projectWindow] makeKeyAndOrderFront:self];
}
}

View file

@ -126,8 +126,6 @@
[projectManager openFileAtPath:fileName];
}
[[[projectManager activeProject] projectWindow] makeKeyAndOrderFront:self];
return YES;
}