Async image saving

This commit is contained in:
kramo
2023-03-13 23:09:51 +01:00
parent 3af1e42548
commit 35185205e3
2 changed files with 12 additions and 4 deletions

View File

@@ -74,6 +74,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
self.hidden_filtered = {}
self.previous_page = self.library_view
self.toasts = {}
self.busy_games = []
self.overview.set_measure_overlay(self.overview_box, True)
self.overview.set_clip_overlay(self.overview_box, False)
@@ -107,6 +108,9 @@ class CartridgesWindow(Adw.ApplicationWindow):
self.games = get_games()
for game_id in games:
if game_id in self.busy_games:
continue
if game_id in self.visible_widgets:
self.library.remove(self.visible_widgets[game_id])
self.filtered.pop(self.visible_widgets[game_id])