Revision: 27800
          http://sourceforge.net/p/bibdesk/svn/27800
Author:   hofman
Date:     2022-08-14 09:31:20 +0000 (Sun, 14 Aug 2022)
Log Message:
-----------
only save page icons for 7 days, as we always save bookmark icons, and 
WebHistory has a default limit of 7 days.

Modified Paths:
--------------
    trunk/bibdesk/BDSKWebIconDatabase.m

Modified: trunk/bibdesk/BDSKWebIconDatabase.m
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-12 21:58:41 UTC (rev 27799)
+++ trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-14 09:31:20 UTC (rev 27800)
@@ -185,7 +185,7 @@
 - (void)handleApplicationWillTerminate:(NSNotification *)notification {
     if (icons == nil || pages == nil || [recentIcons count] == 0)
         return;
-    [self removePagesWithLimit:365.0 * 24.0 * 3600.0];
+    [self removePagesWithLimit:7.0 * 86400.0];
     NSURL *dbURL = [self webIconDatabaseURL];
     NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:pages, 
PAGES_KEY, icons, ICONS_KEY, VERSION, VERSION_KEY, nil];
     NSData *data = [NSPropertyListSerialization dataWithPropertyList:dict 
format:NSPropertyListBinaryFormat_v1_0 options:0 error:NULL];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to