2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Never use custom notifications on Wayland since there are no positioning API

This commit is contained in:
Ilya Fedin
2020-06-17 01:23:39 +04:00
committed by John Preston
parent 2559a3590d
commit 56de3194ef
2 changed files with 21 additions and 2 deletions

View File

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