1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01: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;
- (void) setApplicationHandler: (Tomahawk::PlatformInterface*)handler;
#ifdef HAVE_SPARKLE
// SUUpdaterDelegate
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update;
#endif
@end
@ -209,12 +212,14 @@
[super sendEvent: event];
}
#ifdef HAVE_SPARKLE
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
{
tLog() << "NSApp in willInstallUpdate, deleting Phonon objects";
AudioEngine::instance()->stop();
delete AudioEngine::instance();
}
#endif
@end