Replace SUUpdater with SPUStandardUpdaterController
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
#include "globalshortcuts/globalshortcutsbackend-macos.h"
|
#include "globalshortcuts/globalshortcutsbackend-macos.h"
|
||||||
|
|
||||||
#ifdef HAVE_SPARKLE
|
#ifdef HAVE_SPARKLE
|
||||||
# import <SUUpdater.h>
|
# import <SPUStandardUpdaterController.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@@ -290,7 +290,7 @@ void MacMain() {
|
|||||||
[MacApplication sharedApplication];
|
[MacApplication sharedApplication];
|
||||||
#ifdef HAVE_SPARKLE
|
#ifdef HAVE_SPARKLE
|
||||||
// Creates and sets the magic global variable for Sparkle.
|
// Creates and sets the magic global variable for Sparkle.
|
||||||
[ [SUUpdater sharedUpdater] setDelegate:NSApp];
|
[ [SPUStandardUpdaterController sharedUpdater] setDelegate:NSApp];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -305,7 +305,7 @@ void SetApplicationHandler(PlatformInterface *handler) {
|
|||||||
|
|
||||||
void CheckForUpdates() {
|
void CheckForUpdates() {
|
||||||
#ifdef HAVE_SPARKLE
|
#ifdef HAVE_SPARKLE
|
||||||
[ [SUUpdater sharedUpdater] checkForUpdates:NSApp];
|
[ [SPUStandardUpdaterController sharedUpdater] checkForUpdates:NSApp];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user