Version 2.1.12: Fix build on macOS.

This commit is contained in:
John Preston 2020-06-17 22:36:53 +04:00
parent 3681a5559e
commit a56ecfebeb

View file

@ -634,11 +634,11 @@ void SetupNotificationsContent(
} else if (Platform::IsWindows()) { } else if (Platform::IsWindows()) {
return tr::lng_settings_use_windows(tr::now); return tr::lng_settings_use_windows(tr::now);
} else if (Platform::IsLinux()) { } else if (Platform::IsLinux()) {
#ifdef Q_OS_UNIX #if defined Q_OS_UNIX && !defined Q_OS_MAC
if (Platform::IsWayland()) { if (Platform::IsWayland()) {
return QString(); return QString();
} }
#endif // Q_OS_UNIX #endif // Q_OS_UNIX && !Q_OS_MAC
return tr::lng_settings_use_native_notifications(tr::now); return tr::lng_settings_use_native_notifications(tr::now);
} }
return QString(); return QString();