Fixed notifications not checking if app-icon is a icon-name. Fixes: #356

This commit is contained in:
Erik Reider 2023-12-19 18:59:58 +01:00
parent ff04ca3924
commit 76b3441bb3

View File

@ -39,6 +39,11 @@ namespace SwayNotificationCenter {
stderr.printf (e.message + "\n");
}
}
// Try as icon name
if (img.storage_type == Gtk.ImageType.EMPTY) {
img.set_from_icon_name (uri, Gtk.IconSize.INVALID);
}
}
public static void set_image_data (ImageData data,