💥 ags(runner/result-widget): only add icon if defined

This commit is contained in:
retrozinndev
2025-04-25 13:36:39 -03:00
parent e6bac1a425
commit 419d0ab502
+3 -1
View File
@@ -31,10 +31,12 @@ class ResultWidget extends Widget.Box {
this.closeOnClick = props.closeOnClick ?? true;
this.onClick = () => props.onClick?.();
if(this.icon != null) {
this.add(new Widget.Icon({
visible: Boolean(props.icon),
visible: props.icon,
icon: props.icon || "image-missing"
} as Widget.IconProps));
}
this.add(new Widget.Box({
orientation: Gtk.Orientation.VERTICAL,