mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-20 18:32:17 +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 *filePath;
|
||||||
NSString *projectType;
|
NSString *projectType;
|
||||||
PCProject *project;
|
PCProject *project;
|
||||||
|
NSString *projectPath;
|
||||||
|
|
||||||
[self createProjectTypeAccessaryView];
|
[self createProjectTypeAccessaryView];
|
||||||
|
|
||||||
|
@ -858,7 +858,9 @@ NSString *PCActiveProjectDidChangeNotification = @"PCActiveProjectDidChange";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[loadedProjects setObject:project forKey: [project projectPath]];
|
projectPath = [project projectPath];
|
||||||
|
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL fileURLWithPath:projectPath]];
|
||||||
|
[loadedProjects setObject:project forKey:projectPath];
|
||||||
[self setActiveProject:project];
|
[self setActiveProject:project];
|
||||||
[[project projectWindow] orderFront:self];
|
[[project projectWindow] orderFront:self];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue