Fix update logic when hiding games

This commit is contained in:
kramo
2023-07-03 15:10:14 +02:00
parent e388623c03
commit 220c9a4bb7
2 changed files with 5 additions and 2 deletions

View File

@@ -28,7 +28,9 @@
"/share/man", "/share/man",
"/share/pkgconfig", "/share/pkgconfig",
"*.la", "*.la",
"*.a" "*.a",
"*.pyc",
"__pycache__"
], ],
"modules" : [ "modules" : [
{ {

View File

@@ -140,11 +140,12 @@ class Game(Gtk.Box):
def toggle_hidden(self, toast=True): def toggle_hidden(self, toast=True):
self.hidden = not self.hidden self.hidden = not self.hidden
self.save() self.save()
self.update()
if self.win.stack.get_visible_child() == self.win.details_view: if self.win.stack.get_visible_child() == self.win.details_view:
self.win.on_go_back_action() self.win.on_go_back_action()
self.update()
if toast: if toast:
self.create_toast( self.create_toast(
# The variable is the title of the game # The variable is the title of the game