mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Merge pull request #4563 from nextcloud/bugfix/pre-bigsur-build-fix
Fix build on macOS versions pre-11 (down to 10.14)
This commit is contained in:
commit
87ebd3ff3b
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ Q_LOGGING_CATEGORY(lcMacSystray, "nextcloud.gui.macsystray")
|
|||
willPresentNotification:(UNNotification *)notification
|
||||
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
|
||||
{
|
||||
completionHandler(UNNotificationPresentationOptionSound + UNNotificationPresentationOptionBanner);
|
||||
if (@available(macOS 11.0, *)) {
|
||||
completionHandler(UNNotificationPresentationOptionSound + UNNotificationPresentationOptionBanner);
|
||||
} else {
|
||||
completionHandler(UNNotificationPresentationOptionSound + UNNotificationPresentationOptionAlert);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
|
||||
|
|
Loading…
Reference in a new issue