mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
Merge pull request #12 from svgol/save_new_in_recent
* save just created projects to the list of recent documents
This commit is contained in:
commit
80d0c2575e
1 changed files with 4 additions and 2 deletions
|
@ -817,7 +817,7 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
NSString *filePath;
|
||||
NSString *projectType;
|
||||
PCProject *project;
|
||||
|
||||
NSString *projectPath;
|
||||
|
||||
[self createProjectTypeAccessaryView];
|
||||
|
||||
|
@ -858,7 +858,9 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
|||
return;
|
||||
}
|
||||
|
||||
[loadedProjects setObject:project forKey: [project projectPath]];
|
||||
projectPath = [project projectPath];
|
||||
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL fileURLWithPath:projectPath]];
|
||||
[loadedProjects setObject:project forKey:projectPath];
|
||||
[self setActiveProject:project];
|
||||
[[project projectWindow] orderFront:self];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue