Fix setting application icon in Linux notifications

This commit is contained in:
Ilya Fedin 2024-04-25 11:21:58 +04:00 committed by John Preston
parent e2f17f1131
commit b1e64419a5

View file

@ -436,9 +436,9 @@ void NotificationData::show() {
const auto weak = base::make_weak(this); const auto weak = base::make_weak(this);
StartServiceAsync(_proxy.get_connection(), crl::guard(weak, [=] { StartServiceAsync(_proxy.get_connection(), crl::guard(weak, [=] {
const auto iconName = _imageKey.empty() const auto iconName = _imageKey.empty()
|| _hints.lookup_value(_imageKey) || !_hints.lookup_value(_imageKey)
? std::string() ? base::IconName().toStdString()
: base::IconName().toStdString(); : std::string();
auto actions = _actions auto actions = _actions
| ranges::views::transform(&std::string::c_str) | ranges::views::transform(&std::string::c_str)