🐛 Fixed UI not updating on some game actions

This commit is contained in:
GeoffreyCoulaud
2023-06-10 15:31:54 +02:00
parent 8eb2a270f6
commit 3a0911e742
4 changed files with 21 additions and 3 deletions

View File

@@ -245,6 +245,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
for game in self.removed_games:
game.removed = False
game.save()
game.update()
self.removed_games = set()
self.toast.dismiss()
@@ -256,6 +257,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
game.removed = True
game.save()
game.update()
if self.win.stack.get_visible_child() == self.win.details_view:
self.win.on_go_back_action()