Download more media when reloading Lutris.

Specifically, games that are missing media, have Lutris slugs, and are not in your Lutris library can get media here.
This commit is contained in:
Daniel Johnson 2023-10-30 17:19:23 -04:00
parent 1f1d554df3
commit 9de31af32e
2 changed files with 7 additions and 1 deletions

View file

@ -55,7 +55,7 @@ class ServicesBox(BaseConfigBox):
label.set_alignment(0, 0.5)
service_label_box.pack_start(label, False, False, 0)
desc_label = Gtk.Label(visible=True)
desc_label = Gtk.Label(visible=True, wrap=True)
desc_label.set_alignment(0, 0.5)
desc_label.set_text(service.description)
service_label_box.pack_start(desc_label, False, False, 0)

View file

@ -106,6 +106,12 @@ class LutrisService(OnlineService):
logger.debug("Lutris games loaded")
return lutris_games
def load_icons(self):
super().load_icons()
# Also load any media for games that use Lutris media,
# but are not in the Lutris library.
sync_media()
def install(self, db_game):
if isinstance(db_game, dict):
slug = db_game["slug"]