Minor code cleanups

cusax-fix
Romain Kuntz 18 years ago
parent 0cacbf7be9
commit a4bd487991

@ -43,7 +43,7 @@ Java_net_java_sip_communicator_impl_sparkle_SparkleActivator_initSparkle
//Class suUpdaterClass = [bundle classNamed:@"SUUpdater"];
//id suUpdater = [[suUpdaterClass alloc] init];
SUUpdater *suUpdater = [SUUpdater alloc];
SUUpdater *suUpdater = [SUUpdater alloc];
(*env)->ReleaseStringUTFChars(env, pathToSparkleFramework, path);
@ -62,10 +62,10 @@ Java_net_java_sip_communicator_impl_sparkle_SparkleActivator_initSparkle
// 0 => top, 1 => after "About..."
[applicationMenu insertItem:checkForUpdatesMenuItem atIndex:1];
// Check at Startup (SUCheckAtStartup and SUScheduledCheckInterval
// specified in the Info.plist does not seem to work)
if (updateAtStartup == JNI_TRUE)
[suUpdater checkForUpdatesInBackground];
// Check at Startup (SUCheckAtStartup and SUScheduledCheckInterval
// specified in the Info.plist does not seem to work)
if (updateAtStartup == JNI_TRUE)
[suUpdater checkForUpdatesInBackground];
[suUpdater scheduleCheckWithInterval:checkInterval];
[suUpdater scheduleCheckWithInterval:checkInterval];
}

@ -32,11 +32,11 @@ public native static void initSparkle(String pathToSparkleFramework,
private boolean updateAtStartup = true;
/**
* Whether updates are checked at startup
* Check interval period, in seconds
*/
private int checkInterval = 86400; // 1 day
/**
/**
* Dynamically loads JNI object. Will fail if non-MacOSX
* or when libinit_sparkle.dylib is outside of the LD_LIBRARY_PATH
*/

Loading…
Cancel
Save