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

Display only one error message when starting without any available cardsets.

This commit is contained in:
Joe R 2022-05-03 18:03:25 -04:00
parent af1fba247a
commit 02fbe321e5

View file

@ -321,6 +321,9 @@ Please check your %(app)s installation.
cardset = app.cardset_manager.getByName(c[0])
if cardset and c[1]:
cardset.updateCardback(backname=c[1])
if app.cardset_manager.len() == 0:
fatal_no_cardsets(app)
return 3
if not cardset:
MfxMessageDialog(top, title=_("Cardset error"),
text=_('''
@ -333,9 +336,9 @@ Cardsets package is up to date.
cardset = app.cardset_manager.getByName("Standard")
if not cardset:
cardset = app.cardset_manager.get(0)
if app.cardset_manager.len() == 0 or not cardset:
fatal_no_cardsets(app)
return 3
if not cardset:
fatal_no_cardsets(app)
return 3
# init tiles
manager = app.tabletile_manager