Ensure freedesktop capabilities aren't used when GNotification is used

This commit is contained in:
Ilya Fedin 2023-01-13 10:13:40 +04:00 committed by John Preston
parent a1f9b5a96f
commit 9b154b3c91

View file

@ -834,6 +834,11 @@ bool Enforced() {
}
bool ByDefault() {
// The capabilities are static, equivalent to 'body' and 'actions' only
if (UseGNotification()) {
return false;
}
// A list of capabilities that offer feature parity
// with custom notifications
static const auto NeededCapabilities = {