Skip to content

Commit

Permalink
Update the menu's game ID after changing the game, in case the user c…
Browse files Browse the repository at this point in the history
…ancels.
  • Loading branch information
joeraz committed Nov 11, 2023
1 parent 5c51f92 commit 254f445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysollib/ui/tktile/menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,9 +1139,11 @@ def updateGamesMenu(self, menu, games):

def mSelectGame(self, *args):
self._mSelectGame(self.tkopt.gameid.get())
self.tkopt.gameid.set(self.game.id)

def mSelectGamePopular(self, *args):
self._mSelectGame(self.tkopt.gameid_popular.get())
self.tkopt.gameid_popular.set(self.game.id)

def _mSelectGameDialog(self, d):
if d.status == 0 and d.button == 0 and d.gameid != self.game.id:
Expand Down

0 comments on commit 254f445

Please sign in to comment.