From baf54fb87c37c821a3e9d6b2c3269a0fc37e3ff9 Mon Sep 17 00:00:00 2001 From: claudiux Date: Sat, 6 Jul 2024 21:01:14 +0200 Subject: [PATCH] ExtensionCore.py - Adds update subject --- .../share/cinnamon/cinnamon-settings/bin/ExtensionCore.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/usr/share/cinnamon/cinnamon-settings/bin/ExtensionCore.py b/files/usr/share/cinnamon/cinnamon-settings/bin/ExtensionCore.py index 76aefca8f2..8f045c73e2 100644 --- a/files/usr/share/cinnamon/cinnamon-settings/bin/ExtensionCore.py +++ b/files/usr/share/cinnamon/cinnamon-settings/bin/ExtensionCore.py @@ -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: @@ -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'{description_markup}') + if self.spices.get_has_update(uuid): + subject_markup = GLib.markup_escape_text(sanitize_html(self.subject)) + description_label.set_markup(f'{description_markup}\n{subject_markup}') + else: + description_label.set_markup(f'{description_markup}') description_label.set_margin_top(2) desc_box.pack_start(description_label, False, False, 0)