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:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user