tiny cleanup

This commit is contained in:
GloriousEggroll 2025-03-24 02:18:41 -06:00
parent 1134aca5e0
commit 347eb0fb92
2 changed files with 2 additions and 3 deletions

View file

@ -409,7 +409,7 @@ class AppstreamSearcher:
self.collection_results = updated_results self.collection_results = updated_results
def refresh_data(self): def retrieve_metadata(self):
# make sure to reset these to empty before refreshing. # make sure to reset these to empty before refreshing.
self.category_results = [] # Initialize empty list self.category_results = [] # Initialize empty list

View file

@ -7,7 +7,6 @@ gi.require_version("Flatpak", "1.0")
from gi.repository import Gtk, Gio, Gdk, GLib from gi.repository import Gtk, Gio, Gdk, GLib
import libflatpak_query import libflatpak_query
import json import json
from queue import Queue
import threading import threading
class MainWindow(Gtk.Window): class MainWindow(Gtk.Window):
@ -205,7 +204,7 @@ class MainWindow(Gtk.Window):
# Define thread target function # Define thread target function
def refresh_target(): def refresh_target():
try: try:
category_results, collection_results, installed_results, updates_results = searcher.refresh_data() category_results, collection_results, installed_results, updates_results = searcher.retrieve_metadata()
self.category_results = category_results self.category_results = category_results
self.collection_results = collection_results self.collection_results = collection_results
self.installed_results = installed_results self.installed_results = installed_results