Skip to content

Commit 115d671

Browse files
committed
services/tray: use normal icon as fallback for attention custom icon
Signed-off-by: ipg0 <pyromancy00@gmail.com>
1 parent 91dcb41 commit 115d671

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/status_notifier/item.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ QPixmap StatusNotifierItem::createPixmap(const QSize& size) const {
163163
} else {
164164
const auto* icon = closestPixmap(size, this->bAttentionIconPixmaps.value());
165165

166+
if (icon == nullptr) {
167+
icon = closestPixmap(size, this->bIconPixmaps.value());
168+
}
169+
166170
if (icon != nullptr) {
167171
const auto image =
168172
icon->createImage().scaled(size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);

0 commit comments

Comments
 (0)