From 2b8bd8b6d4f6d20b4d15dd1cc521350fb0bd4c03 Mon Sep 17 00:00:00 2001 From: heliguy Date: Mon, 19 Feb 2024 03:48:24 -0500 Subject: [PATCH] Fix always false filter being set in Manage Remotes window --- src/remotes_window.py | 3 +-- src/window.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remotes_window.py b/src/remotes_window.py index 8e154b9..4f2de01 100644 --- a/src/remotes_window.py +++ b/src/remotes_window.py @@ -22,7 +22,6 @@ class RemotesWindow(Adw.Window): show_disabled_button = Gtk.Template.Child() show_disabled_button_button_content = Gtk.Template.Child() show_disabled = False - # progress_bar = Gtk.Template.Child() rows_in_list = [] rows_in_popular_list = [] @@ -193,7 +192,7 @@ class RemotesWindow(Adw.Window): settings = Gio.Settings.new("io.github.flattool.Warehouse.filter") for key in settings.list_keys(): settings.reset(key) - settings.set_string("remotes-list", remote) + settings.set_string("remotes-list", f"{remote}<>{type}") self.main_window.apply_filter() self.close() diff --git a/src/window.py b/src/window.py index dbf3ba4..05cd3d9 100644 --- a/src/window.py +++ b/src/window.py @@ -368,6 +368,7 @@ class WarehouseWindow(Adw.ApplicationWindow): remotes_list = settings.get_string("remotes-list").split(",") runtimes_list = settings.get_string("runtimes-list").split(",") total_visible = 0 + print(settings.get_string("remotes-list")) i = 0 while self.flatpaks_list_box.get_row_at_index(i) != None: current = self.flatpaks_list_box.get_row_at_index(i)