mirror of
https://github.com/ksherlock/ProFUSE-Image-Opener.git
synced 2025-01-02 18:29:56 +00:00
add file to recent documents @ close time.
This commit is contained in:
parent
261aba02db
commit
01d54afcc3
@ -347,6 +347,12 @@ static unsigned ExtToTag(NSString *ext)
|
||||
|
||||
- (void)windowWillClose:(NSNotification *)notification
|
||||
{
|
||||
if (_filePath)
|
||||
{
|
||||
NSURL *url = [NSURL fileURLWithPath: _filePath isDirectory: NO];
|
||||
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url];
|
||||
}
|
||||
|
||||
[self release];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user