Revision: 5234
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5234&view=rev
Author:   hofman
Date:     2009-03-02 17:58:11 +0000 (Mon, 02 Mar 2009)

Log Message:
-----------
reset update checkinterval when resetting prefs

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

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2009-03-02 17:52:42 UTC (rev 5233)
+++ trunk/SKPreferenceController.m      2009-03-02 17:58:11 UTC (rev 5234)
@@ -259,13 +259,11 @@
             [sudc revertToInitialValuesForKeys:keys];
         else
             [sudc revertToInitialValues:nil];
-        /*
-        if (tabID == nil || [keys containsObject:SUScheduledCheckIntervalKey]) 
{
-            int checkInterval = [sud 
integerForKey:SUScheduledCheckIntervalKey];
-            if (checkInterval)
-               [[SUUpdater sharedUpdater] 
scheduleCheckWithInterval:checkInterval];
+        if (tabID == nil || [tabID isEqualToString:@"general"]) {
+            NSTimeInterval interval = [[[NSBundle mainBundle] 
objectForInfoDictionaryKey:@"SUScheduledCheckInterval"] doubleValue]];
+            [[SUUpdater sharedUpdater] setUpdateCheckInterval:interval];
+            [[SUUpdater sharedUpdater] 
setAutomaticallyChecksForUpdates:interval > 0.0];
         }
-        */
     }
 }
 


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to