1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

Build sparkle upgrade handler conditionally

This commit is contained in:
Leo Franchi
2011-11-11 12:24:29 -05:00
parent 3c024ab7ac
commit 8e742a06d9

View File

@@ -56,8 +56,11 @@
- (Tomahawk::PlatformInterface*) application_handler; - (Tomahawk::PlatformInterface*) application_handler;
- (void) setApplicationHandler: (Tomahawk::PlatformInterface*)handler; - (void) setApplicationHandler: (Tomahawk::PlatformInterface*)handler;
#ifdef HAVE_SPARKLE
// SUUpdaterDelegate // SUUpdaterDelegate
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update; - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update;
#endif
@end @end
@@ -209,12 +212,14 @@
[super sendEvent: event]; [super sendEvent: event];
} }
#ifdef HAVE_SPARKLE
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
{ {
tLog() << "NSApp in willInstallUpdate, deleting Phonon objects"; tLog() << "NSApp in willInstallUpdate, deleting Phonon objects";
AudioEngine::instance()->stop(); AudioEngine::instance()->stop();
delete AudioEngine::instance(); delete AudioEngine::instance();
} }
#endif
@end @end