Revision: 15529
          http://sourceforge.net/p/skim-app/code/15529
Author:   hofman
Date:     2025-06-23 15:51:41 +0000 (Mon, 23 Jun 2025)
Log Message:
-----------
pretend to add resent document when we don't want any (more) recent documents, 
so the document does not keep trying

Modified Paths:
--------------
    trunk/SKBookmarkController.m

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2025-06-23 15:25:56 UTC (rev 15528)
+++ trunk/SKBookmarkController.m        2025-06-23 15:51:41 UTC (rev 15529)
@@ -250,7 +250,10 @@
 }
 
 - (BOOL)addRecentDocumentForURL:(NSURL *)fileURL 
pageIndex:(NSUInteger)pageIndex snapshots:(NSArray *)snapshots {
-    if (maxRecentDocumentsCount > 0 && fileURL && appIsTerminating == NO) {
+    if (maxRecentDocumentsCount > 0 && appIsTerminating == NO)
+        return YES;
+    
+    if (fileURL) {
         SKBookmark *info = [[SKBookmark alloc] initWithURL:fileURL 
pageIndex:pageIndex snapshots:snapshots label:nil];
         if (info) {
             SKBookmark *oldInfo = [self recentDocumentAtURL:fileURL];

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

Reply via email to