forked from osmocom/wireshark
parent
4be3ae9738
commit
cb8fc2874c
|
@ -22,6 +22,4 @@ void sparkle_software_update_init(const char *url, bool enabled, int interval);
|
|||
|
||||
void sparkle_software_update_check(void);
|
||||
|
||||
void sparkle_software_update_cleanup(void);
|
||||
|
||||
#endif // SPARKLE_BRIDGE_H
|
||||
|
|
|
@ -53,21 +53,3 @@ void sparkle_software_update_check(void)
|
|||
{
|
||||
[[SparkleBridge sharedStandardUpdaterController] checkForUpdates: [[NSApplication sharedApplication] delegate]];
|
||||
}
|
||||
|
||||
// Sparkle requires NSApplicationWillTerminateNotification in order to
|
||||
// properly update in the background.
|
||||
//
|
||||
// https://github.com/sparkle-project/Sparkle/issues/232
|
||||
// https://github.com/sparkle-project/Sparkle/issues/892
|
||||
// https://github.com/sparkle-project/Sparkle/issues/839
|
||||
//
|
||||
// This depends on the Sparkle framework being able to run Autoupdate.app.
|
||||
// If that's not reliable we might want to disable SUAllowsAutomaticUpdates
|
||||
// above.
|
||||
|
||||
void sparkle_software_update_cleanup()
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
postNotificationName:@"NSApplicationWillTerminateNotification"
|
||||
object:nil];
|
||||
}
|
||||
|
|
|
@ -157,7 +157,6 @@ software_update_check(void) {
|
|||
/** Clean up software update checking.
|
||||
*/
|
||||
void software_update_cleanup(void) {
|
||||
sparkle_software_update_cleanup();
|
||||
}
|
||||
|
||||
const char *software_update_info(void) {
|
||||
|
|
Loading…
Reference in New Issue