Skip to content

Commit

Permalink
Fixed resetting of cardset on cancelling select game.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Jun 7, 2024
1 parent 7ef3b1d commit 90ffaeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pysollib/tile/selectgame.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ def mDone(self, button):
self.tree.n_expansions = 1 # save xyview in any case
if button == 1: # Cancel button
# If the user cancels, revert any cardset change from the preview.
self.app.cardset = self.cardset
if self.app.cardset.name != self.cardset.name:
self.app.loadCardset(self.cardset,
id=self.game.gameinfo.category,
tocache=True, noprogress=True)
if button == 10: # Rules
doc = self.app.getGameRulesFilename(self.tree.selection_key)
if not doc:
Expand Down

0 comments on commit 90ffaeb

Please sign in to comment.