2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Version 1.4.0: Fix build for old OS X versions.

This commit is contained in:
John Preston
2018-09-28 15:50:47 +03:00
parent 3521255d9e
commit b66f32fe9e
3 changed files with 9 additions and 0 deletions

View File

@@ -121,7 +121,11 @@ ApplicationDelegate *_sharedDelegate = nil;
});
#ifndef OS_MAC_STORE
if ([SPMediaKeyTap usesGlobalMediaKeyTap]) {
#ifndef OS_MAC_OLD
if (QSysInfo::macVersion() < Q_MV_OSX(10, 14)) {
#else // OS_MAC_OLD
if (true) {
#endif // OS_MAC_OLD
_keyTap = [[SPMediaKeyTap alloc] initWithDelegate:self];
} else {
// In macOS Mojave it requires accessibility features.