mirror of
https://github.com/ksherlock/ProFUSE-Image-Opener.git
synced 2024-06-03 04:29:32 +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
|
- (void)windowWillClose:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
if (_filePath)
|
||||||
|
{
|
||||||
|
NSURL *url = [NSURL fileURLWithPath: _filePath isDirectory: NO];
|
||||||
|
[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url];
|
||||||
|
}
|
||||||
|
|
||||||
[self release];
|
[self release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user