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:
parent
3c024ab7ac
commit
8e742a06d9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user