mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Don't get missing media when no games are added
This commit is contained in:
parent
dd382a06ba
commit
21c0ccf831
|
@ -116,6 +116,7 @@ class GameStore(GObject.Object):
|
|||
def add_games(self, games):
|
||||
"""Add games to the store"""
|
||||
self.media_loaded = False
|
||||
if games:
|
||||
AsyncCall(self.get_missing_media, None, [game["slug"] for game in games])
|
||||
for game in list(games):
|
||||
GLib.idle_add(self.add_game, game)
|
||||
|
|
Loading…
Reference in a new issue