1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Loading the cardset to the cache at the start, to prevent errors when the preview switches cardset type.

This commit is contained in:
Joe R 2024-02-18 16:11:26 -05:00
parent 3547c5ad0a
commit be12039d0f

View file

@ -400,12 +400,13 @@ Cardsets package is up to date.
# load cardset # load cardset
progress = app.intro.progress progress = app.intro.progress
if not app.loadCardset(cardset, progress=progress, update=1): if not app.loadCardset(cardset, progress=progress, id=app.opt.last_gameid):
if not cardset: if not cardset:
for cardset in app.cardset_manager.getAll(): for cardset in app.cardset_manager.getAll():
progress.reset() progress.reset()
if app.loadCardset(cardset, progress=progress, update=1): if app.loadCardset(cardset, progress=progress,
id=app.opt.last_gameid):
break break
else: else:
fatal_no_cardsets(app) fatal_no_cardsets(app)