Skip to content

Commit

Permalink
Merge pull request #12281 from claudiux/ExtensionCore.py-Add-update-s…
Browse files Browse the repository at this point in the history
…ubject

ExtensionCore.py - Adds update subject
  • Loading branch information
claudiux committed Jul 8, 2024
2 parents 86c071c + baf54fb commit c21def1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ def __init__(self, uuid, data, spices, size_groups):
self.description = data['description']
self.score = data['score']
self.timestamp = data['last_edited']
self.subject = data['last_commit_subject']

self.author = ""
if 'author_user' in data:
Expand Down Expand Up @@ -753,7 +754,11 @@ def __init__(self, uuid, data, spices, size_groups):

description_label = SettingsLabel()
description_markup = GLib.markup_escape_text(sanitize_html(self.description))
description_label.set_markup(f'<small>{description_markup}</small>')
if self.spices.get_has_update(uuid):
subject_markup = GLib.markup_escape_text(sanitize_html(self.subject))
description_label.set_markup(f'<small>{description_markup}</small>\n<small><i>{subject_markup}</i></small>')
else:
description_label.set_markup(f'<small>{description_markup}</small>')
description_label.set_margin_top(2)
desc_box.pack_start(description_label, False, False, 0)

Expand Down

0 comments on commit c21def1

Please sign in to comment.