From 859432d91fe810a3e4146f8ef481ee592edabb20 Mon Sep 17 00:00:00 2001 From: Heliguy Date: Sun, 22 Oct 2023 21:22:14 -0400 Subject: [PATCH] Make filter window use common's dependant runtimes --- src/filter_window.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/filter_window.py b/src/filter_window.py index 75ecec6..f82201a 100644 --- a/src/filter_window.py +++ b/src/filter_window.py @@ -87,12 +87,8 @@ class FilterWindow(Adw.Window): def generateList(self): self.remotes_expander_switch = Gtk.Switch(valign=Gtk.Align.CENTER) self.runtimes_expander_switch = Gtk.Switch(valign=Gtk.Align.CENTER) - - dependant_runtimes = [] - for i in range(len(self.host_flatpaks)): - current = self.host_flatpaks[i] - if current[13] not in dependant_runtimes and current[13] != "": - dependant_runtimes.append(current[13]) + + dependant_runtimes = self.my_utils.getDependantRuntimes() if len(self.host_remotes) < 2: # Don't give the ability to filter by remotes if there is only 1 self.remotes_expander.set_visible(False)