From bd764eeb0bcc69280c914298eb07d41af4cbad32 Mon Sep 17 00:00:00 2001 From: heliguy Date: Sun, 24 Sep 2023 03:41:37 -0400 Subject: [PATCH] Have the list row show ref when showing runtimes --- src/window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.py b/src/window.py index d822146..e52fb5b 100644 --- a/src/window.py +++ b/src/window.py @@ -221,7 +221,7 @@ class WarehouseWindow(Adw.ApplicationWindow): app_ref = self.host_flatpaks[index][8] flatpak_row = Adw.ActionRow(title=GLib.markup_escape_text(app_name)) flatpak_row.add_prefix(self.my_utils.findAppIcon(app_id)) - flatpak_row.set_subtitle(self.host_flatpaks[index][8]) + flatpak_row.set_subtitle(app_id) # Check the filter and skip row if it does not meet the filter if (not self.show_apps) and (not "runtime" in self.host_flatpaks[index][12]): @@ -236,6 +236,10 @@ class WarehouseWindow(Adw.ApplicationWindow): if (not 'all' in self.filter_remotes_list) and (not self.host_flatpaks[index][6] in self.filter_remotes_list): continue + # Change the subtitle from id to ref if the list is set to show runtimes + if self.show_runtimes: + flatpak_row.set_subtitle(app_ref) + properties_button = Gtk.Button(icon_name="info-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("View Properties")) properties_button.add_css_class("flat") properties_button.connect("clicked", show_properties_window, index, self)