Skip to content

Commit 2c0ea0d

Browse files
committed
Fixed no-icon (label-only) items
1 parent 266f2cb commit 2c0ea0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snitem.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ namespace StatusNotifier
391391
overlay_icon = new Emblem(overlay_icon);
392392
var icon = new EmblemedIcon((attention_icon != null && item.status == Status.NEEDS_ATTENTION) ? attention_icon
393393
: (main_icon ?? (image.gicon as EmblemedIcon).gicon),overlay_icon as Emblem);
394-
if (icon != null)
394+
if ((attention_icon ?? main_icon ?? overlay_icon) != null)
395395
{
396396
image.set_from_gicon(icon,IconSize.INVALID);
397397
image.show();

0 commit comments

Comments
 (0)