Skip to content

Commit

Permalink
FirmwareReleaseView: Add support for AppStream 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl committed Nov 16, 2023
1 parent 91c50ae commit e527f22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Views/FirmwareReleaseView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ public class About.FirmwareReleaseView : Gtk.Grid {

summary_label.label = release.get_summary ();
try {
#if HAS_APPSTREAM_1_0
description_label.label = AppStream.markup_convert (release.get_description (), AppStream.MarkupKind.XML);
#else
description_label.label = AppStream.markup_convert_simple (release.get_description ());
#endif
} catch (Error e) {
description_label.label = "";
warning ("Could not convert markup of release: %s", e.message);
Expand Down

0 comments on commit e527f22

Please sign in to comment.