mirror of
https://github.com/lutris/lutris
synced 2024-09-04 15:03:35 +00:00
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:
parent
1f1d554df3
commit
9de31af32e
|
@ -55,7 +55,7 @@ class ServicesBox(BaseConfigBox):
|
||||||
label.set_alignment(0, 0.5)
|
label.set_alignment(0, 0.5)
|
||||||
service_label_box.pack_start(label, False, False, 0)
|
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_alignment(0, 0.5)
|
||||||
desc_label.set_text(service.description)
|
desc_label.set_text(service.description)
|
||||||
service_label_box.pack_start(desc_label, False, False, 0)
|
service_label_box.pack_start(desc_label, False, False, 0)
|
||||||
|
|
|
@ -106,6 +106,12 @@ class LutrisService(OnlineService):
|
||||||
logger.debug("Lutris games loaded")
|
logger.debug("Lutris games loaded")
|
||||||
return lutris_games
|
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):
|
def install(self, db_game):
|
||||||
if isinstance(db_game, dict):
|
if isinstance(db_game, dict):
|
||||||
slug = db_game["slug"]
|
slug = db_game["slug"]
|
||||||
|
|
Loading…
Reference in a new issue