Don't show reply button in Linux native notifications when it's not supposed to
All modern notification daemons have support for the default action and it's a requirement with the portal spec
This commit is contained in:
parent
b9a766387c
commit
05524c3f6c
|
@ -431,10 +431,12 @@ bool NotificationData::init(
|
|||
idTuple);
|
||||
}
|
||||
|
||||
if (!options.hideReplyButton) {
|
||||
_notification->add_button(
|
||||
tr::lng_notification_reply(tr::now).toStdString(),
|
||||
"app.notification-reply",
|
||||
idTuple);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -520,7 +522,8 @@ bool NotificationData::init(
|
|||
tr::lng_context_mark_read(tr::now).toStdString());
|
||||
}
|
||||
|
||||
if (capabilities.contains("inline-reply") && !options.hideReplyButton) {
|
||||
if (!options.hideReplyButton) {
|
||||
if (capabilities.contains("inline-reply")) {
|
||||
_actions.push_back("inline-reply");
|
||||
_actions.push_back(
|
||||
tr::lng_notification_reply(tr::now).toStdString());
|
||||
|
@ -537,6 +540,7 @@ bool NotificationData::init(
|
|||
_actions.push_back(
|
||||
tr::lng_notification_reply(tr::now).toStdString());
|
||||
}
|
||||
}
|
||||
|
||||
_actionInvokedSignalId = _dbusConnection->signal_subscribe(
|
||||
signalEmitted,
|
||||
|
|
Loading…
Reference in New Issue