Revision: 14038
http://sourceforge.net/p/skim-app/code/14038
Author: hofman
Date: 2024-02-03 22:20:33 +0000 (Sat, 03 Feb 2024)
Log Message:
-----------
Always save recent documents for all open documents, also if there are more
than 50
Modified Paths:
--------------
trunk/SKBookmarkController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2024-02-02 10:30:52 UTC (rev 14037)
+++ trunk/SKBookmarkController.m 2024-02-03 22:20:33 UTC (rev 14038)
@@ -254,7 +254,7 @@
if (oldInfo)
[recentDocuments removeObjectIdenticalTo:oldInfo];
[recentDocuments insertObject:info atIndex:0];
- if ([recentDocuments count] > maxRecentDocumentsCount)
+ if ([recentDocuments count] > MAX(maxRecentDocumentsCount,
[[[NSDocumentController sharedDocumentController] documents] count]))
[recentDocuments removeLastObject];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit