mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Pass notification icon name inline
This commit is contained in:
parent
d5d1254393
commit
86f7d09d31
1 changed files with 3 additions and 6 deletions
|
@ -441,11 +441,6 @@ void NotificationData::show() {
|
|||
// a hack for snap's activation restriction
|
||||
const auto weak = base::make_weak(this);
|
||||
StartServiceAsync(_proxy.get_connection(), crl::guard(weak, [=] {
|
||||
const auto iconName = _imageKey.empty()
|
||||
|| !_hints.lookup_value(_imageKey)
|
||||
? base::IconName().toStdString()
|
||||
: std::string();
|
||||
|
||||
auto actions = _actions
|
||||
| ranges::views::transform(&std::string::c_str)
|
||||
| ranges::to_vector;
|
||||
|
@ -476,7 +471,9 @@ void NotificationData::show() {
|
|||
_interface.gobj_(),
|
||||
AppName.data(),
|
||||
0,
|
||||
iconName.c_str(),
|
||||
(_imageKey.empty() || !_hints.lookup_value(_imageKey)
|
||||
? base::IconName().toStdString()
|
||||
: std::string()).c_str(),
|
||||
_title.c_str(),
|
||||
_body.c_str(),
|
||||
actions.data(),
|
||||
|
|
Loading…
Add table
Reference in a new issue