Fix update logic when hiding games
This commit is contained in:
@@ -28,7 +28,9 @@
|
|||||||
"/share/man",
|
"/share/man",
|
||||||
"/share/pkgconfig",
|
"/share/pkgconfig",
|
||||||
"*.la",
|
"*.la",
|
||||||
"*.a"
|
"*.a",
|
||||||
|
"*.pyc",
|
||||||
|
"__pycache__"
|
||||||
],
|
],
|
||||||
"modules" : [
|
"modules" : [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user