Revision: 14664
          http://sourceforge.net/p/skim-app/code/14664
Author:   hofman
Date:     2024-11-10 09:56:34 +0000 (Sun, 10 Nov 2024)
Log Message:
-----------
variable for maximum count of recent documents

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

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2024-11-10 09:31:23 UTC (rev 14663)
+++ trunk/SKBookmarkController.m        2024-11-10 09:56:34 UTC (rev 14664)
@@ -264,7 +264,8 @@
         if (oldInfo)
             [recentDocuments removeObjectIdenticalTo:oldInfo];
         [recentDocuments insertObject:info atIndex:0];
-        while ([recentDocuments count] > MAX(maxRecentDocumentsCount, 
[[[NSDocumentController sharedDocumentController] documents] count]))
+        NSUInteger maxCount = MAX(maxRecentDocumentsCount, 
[[[NSDocumentController sharedDocumentController] documents] count]);
+        while ([recentDocuments count] > maxCount)
             [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

Reply via email to