Fix always false filter being set in Manage Remotes window

This commit is contained in:
heliguy
2024-02-19 03:48:24 -05:00
parent c230d0adc8
commit 2b8bd8b6d4
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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)