diff options
author | Markus Goetz <markus@woboq.com> | 2018-05-16 12:29:27 +0300 |
---|---|---|
committer | Camila (Rebase PR Action) <hello@camila.codes> | 2020-11-24 21:22:33 +0300 |
commit | 65035d1990704b2f1a1db33a0b7f8cd6b3ab73a9 (patch) | |
tree | 179666e3f0b89a9f250119ffefe2f18ac251a7d1 /src/gui/updater | |
parent | c24b81c081a33d66ac8610cbc37f1370231187a5 (diff) |
Sparkle: Delegate calls work now with 1.18.1 (maybe even before)
We can extend on this to give UI feedback.
Diffstat (limited to 'src/gui/updater')
-rw-r--r-- | src/gui/updater/sparkleupdater_mac.mm | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/gui/updater/sparkleupdater_mac.mm b/src/gui/updater/sparkleupdater_mac.mm index 88c3541ff..cfb1189ad 100644 --- a/src/gui/updater/sparkleupdater_mac.mm +++ b/src/gui/updater/sparkleupdater_mac.mm @@ -21,13 +21,11 @@ #include "common/utility.h" #include "updater/sparkleupdater.h" -// Does not work yet @interface DelegateObject : NSObject <SUUpdaterDelegate> - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle; @end @implementation DelegateObject //(SUUpdaterDelegateInformalProtocol) -// Only possible in later versions, we're not up to date here. - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle { Q_UNUSED(bundle) @@ -40,13 +38,14 @@ { Q_UNUSED(updater) Q_UNUSED(update) + qCDebug(OCC::lcUpdater) << ""; } // Sent when a valid update is not found. -// Does not seem to get called ever. - (void)updaterDidNotFindUpdate:(SUUpdater *)update { Q_UNUSED(update) + qCDebug(OCC::lcUpdater) << ""; } // Sent immediately before installing the specified update. @@ -54,16 +53,21 @@ { Q_UNUSED(updater) Q_UNUSED(update) + qCDebug(OCC::lcUpdater) << ""; } -// Tried implementing those methods, but they never ever seem to get called -//- (void) updater:(SUUpdater *)updater didAbortWithError:(NSError *)error -//{ -//} +- (void) updater:(SUUpdater *)updater didAbortWithError:(NSError *)error +{ + Q_UNUSED(updater) + qCDebug(OCC::lcUpdater) << error.description; +} -//- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast -//{ -//} +- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast +{ + Q_UNUSED(updater) + Q_UNUSED(appcast) + qCDebug(OCC::lcUpdater) << ""; +} @end |