From be12039d0fedbabbe34cf2d3237ee36b312f1ace Mon Sep 17 00:00:00 2001 From: Joe R Date: Sun, 18 Feb 2024 16:11:26 -0500 Subject: [PATCH] Loading the cardset to the cache at the start, to prevent errors when the preview switches cardset type. --- pysollib/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pysollib/main.py b/pysollib/main.py index f4b3f445..3ff96b17 100644 --- a/pysollib/main.py +++ b/pysollib/main.py @@ -400,12 +400,13 @@ Cardsets package is up to date. # load cardset 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: for cardset in app.cardset_manager.getAll(): progress.reset() - if app.loadCardset(cardset, progress=progress, update=1): + if app.loadCardset(cardset, progress=progress, + id=app.opt.last_gameid): break else: fatal_no_cardsets(app)