Revision: 15144 http://sourceforge.net/p/skim-app/code/15144 Author: hofman Date: 2025-05-02 21:38:44 +0000 (Fri, 02 May 2025) Log Message: ----------- Remember opening a document to prevent reopening last open documents when opening from services
Modified Paths: -------------- trunk/SKDocumentController.m Modified: trunk/SKDocumentController.m =================================================================== --- trunk/SKDocumentController.m 2025-05-02 16:21:52 UTC (rev 15143) +++ trunk/SKDocumentController.m 2025-05-02 21:38:44 UTC (rev 15144) @@ -245,6 +245,8 @@ } - (void)openDocumentWithImageFromPasteboard:(NSPasteboard *)pboard completionHandler:(void (^)(NSDocument *document, BOOL documentWasAlreadyOpen, NSError *error))completionHandler { + openedFile = YES; + NSData *data = nil; NSString *type = nil; @@ -290,6 +292,8 @@ } - (void)openDocumentWithURLFromPasteboard:(NSPasteboard *)pboard showNotes:(BOOL)showNotes completionHandler:(void (^)(NSDocument *document, BOOL documentWasAlreadyOpen, NSError *error))completionHandler { + openedFile = YES; + NSArray *theURLs = [NSURL readURLsFromPasteboard:pboard]; NSURL *theURL = [theURLs count] > 0 ? [theURLs objectAtIndex:0] : nil; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit