mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fixed bug with the preview using the wrong cardset after loading one with a subtype.
This commit is contained in:
parent
b05c922d3b
commit
069c8e8a7b
3 changed files with 12 additions and 0 deletions
|
@ -427,6 +427,10 @@ class SelectGameDialogWithPreview(MfxDialog):
|
||||||
c = self.app.cardsets_cache.get(gi.category)
|
c = self.app.cardsets_cache.get(gi.category)
|
||||||
if c:
|
if c:
|
||||||
c2 = c.get(gi.subcategory)
|
c2 = c.get(gi.subcategory)
|
||||||
|
if not c2:
|
||||||
|
c = self.app.cardsets_cache.get(cardset.type)
|
||||||
|
if c:
|
||||||
|
c2 = c.get(cardset.subtype)
|
||||||
if c2:
|
if c2:
|
||||||
self.preview_app.images = c2[2]
|
self.preview_app.images = c2[2]
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -745,6 +745,10 @@ class SelectGameDialogWithPreview(SelectGameDialog):
|
||||||
c = self.app.cardsets_cache.get(gi.category)
|
c = self.app.cardsets_cache.get(gi.category)
|
||||||
if c:
|
if c:
|
||||||
c2 = c.get(gi.subcategory)
|
c2 = c.get(gi.subcategory)
|
||||||
|
if not c2:
|
||||||
|
c = self.app.cardsets_cache.get(cardset.type)
|
||||||
|
if c:
|
||||||
|
c2 = c.get(cardset.subtype)
|
||||||
if c2:
|
if c2:
|
||||||
self.preview_app.images = c2[2]
|
self.preview_app.images = c2[2]
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -520,6 +520,10 @@ class SelectGameDialogWithPreview(SelectGameDialog):
|
||||||
c = self.app.cardsets_cache.get(gi.category)
|
c = self.app.cardsets_cache.get(gi.category)
|
||||||
if c:
|
if c:
|
||||||
c2 = c.get(gi.subcategory)
|
c2 = c.get(gi.subcategory)
|
||||||
|
if not c2:
|
||||||
|
c = self.app.cardsets_cache.get(cardset.type)
|
||||||
|
if c:
|
||||||
|
c2 = c.get(cardset.subtype)
|
||||||
if c2:
|
if c2:
|
||||||
self.preview_app.images = c2[2]
|
self.preview_app.images = c2[2]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue