diff --git a/ags/widget/runner/ResultWidget.ts b/ags/widget/runner/ResultWidget.ts index 1b677ab..5c737d1 100644 --- a/ags/widget/runner/ResultWidget.ts +++ b/ags/widget/runner/ResultWidget.ts @@ -31,10 +31,12 @@ class ResultWidget extends Widget.Box { this.closeOnClick = props.closeOnClick ?? true; this.onClick = () => props.onClick?.(); - this.add(new Widget.Icon({ - visible: Boolean(props.icon), - icon: props.icon || "image-missing" - } as Widget.IconProps)); + if(this.icon != null) { + this.add(new Widget.Icon({ + visible: props.icon, + icon: props.icon || "image-missing" + } as Widget.IconProps)); + } this.add(new Widget.Box({ orientation: Gtk.Orientation.VERTICAL,