From f31d1e4bf313ba9b392811efa8ff8bec687c80a3 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 18 Jul 2024 16:38:14 +0100 Subject: [PATCH] notebook: Name the first tab the same for all update types There's no need to call it Description for APT and Information for Flatpak... call it Information all the time. Also, don't set its label dynamically. Probably fixes https://github.com/linuxmint/mint22-beta/issues/182 --- usr/lib/linuxmint/mintUpdate/mintUpdate.py | 7 ------- usr/share/linuxmint/mintupdate/main.ui | 8 ++++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/usr/lib/linuxmint/mintUpdate/mintUpdate.py b/usr/lib/linuxmint/mintUpdate/mintUpdate.py index aece4aa7..1f883f7c 100755 --- a/usr/lib/linuxmint/mintUpdate/mintUpdate.py +++ b/usr/lib/linuxmint/mintUpdate/mintUpdate.py @@ -2018,12 +2018,9 @@ def display_selected_update(self, selection): desc = "%s\n\n%s: %s" % (description, latest_change_str, update.commit_msg) self.textview_description.set_text(desc) - self.notebook_details.get_nth_page(TAB_PACKAGES).hide() self.notebook_details.get_nth_page(TAB_CHANGELOG).hide() - self.notebook_details.set_current_page(TAB_DESC) - self.notebook_details.set_tab_label_text(desc_tab, _("Information")) elif update.type == "flatpak": if update.link is not None: website_label_str = _("Website: %s") % update.link @@ -2032,18 +2029,14 @@ def display_selected_update(self, selection): description = "%s" % update.description self.textview_description.set_text(description) - self.notebook_details.get_nth_page(TAB_PACKAGES).show() self.notebook_details.get_nth_page(TAB_CHANGELOG).hide() - self.notebook_details.set_current_page(TAB_DESC) - self.notebook_details.set_tab_label_text(desc_tab, _("Information")) self.display_package_list(update, is_flatpak=True) else: self.textview_description.set_text(description) self.notebook_details.get_nth_page(TAB_PACKAGES).show() self.notebook_details.get_nth_page(TAB_CHANGELOG).show() - self.notebook_details.set_tab_label_text(desc_tab, _("Description")) self.display_package_list(update) if self.notebook_details.get_current_page() == 2: diff --git a/usr/share/linuxmint/mintupdate/main.ui b/usr/share/linuxmint/mintupdate/main.ui index b8736ae4..0609d158 100644 --- a/usr/share/linuxmint/mintupdate/main.ui +++ b/usr/share/linuxmint/mintupdate/main.ui @@ -412,10 +412,10 @@ - + True False - Description + Information False @@ -447,7 +447,7 @@ - + True False Packages @@ -480,7 +480,7 @@ - + True False Changelog