mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
activate project only in one place
This commit is contained in:
parent
963700e3d6
commit
dcc9e0ef14
2 changed files with 2 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -126,8 +126,6 @@
|
|||
[projectManager openFileAtPath:fileName];
|
||||
}
|
||||
|
||||
[[[projectManager activeProject] projectWindow] makeKeyAndOrderFront:self];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue