mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fix a crash on Linux without actions notification capability
This commit is contained in:
parent
9bdc19e2fd
commit
79cb4668f1
1 changed files with 5 additions and 7 deletions
|
@ -625,10 +625,10 @@ void Manager::Private::showNotification(
|
|||
actions.push_back(
|
||||
tr::lng_notification_reply(tr::now).toStdString());
|
||||
}
|
||||
|
||||
actions.push_back({});
|
||||
}
|
||||
|
||||
actions.push_back({});
|
||||
|
||||
if (HasCapability("action-icons")) {
|
||||
hints.insert_value(
|
||||
"action-icons",
|
||||
|
@ -788,11 +788,9 @@ void Manager::Private::showNotification(
|
|||
info.subtitle),
|
||||
lt_message,
|
||||
info.message).toStdString()).c_str(),
|
||||
!actions.empty()
|
||||
? (actions
|
||||
| ranges::views::transform(&gi::cstring::c_str)
|
||||
| ranges::to_vector).data()
|
||||
: nullptr,
|
||||
(actions
|
||||
| ranges::views::transform(&gi::cstring::c_str)
|
||||
| ranges::to_vector).data(),
|
||||
hints.end().gobj_(),
|
||||
-1,
|
||||
nullptr,
|
||||
|
|
Loading…
Add table
Reference in a new issue