mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Update the menu's game ID after changing the game, in case the user cancels.
This commit is contained in:
parent
5c51f927eb
commit
254f445388
1 changed files with 2 additions and 0 deletions
|
@ -1139,9 +1139,11 @@ class PysolMenubarTkCommon:
|
||||||
|
|
||||||
def mSelectGame(self, *args):
|
def mSelectGame(self, *args):
|
||||||
self._mSelectGame(self.tkopt.gameid.get())
|
self._mSelectGame(self.tkopt.gameid.get())
|
||||||
|
self.tkopt.gameid.set(self.game.id)
|
||||||
|
|
||||||
def mSelectGamePopular(self, *args):
|
def mSelectGamePopular(self, *args):
|
||||||
self._mSelectGame(self.tkopt.gameid_popular.get())
|
self._mSelectGame(self.tkopt.gameid_popular.get())
|
||||||
|
self.tkopt.gameid_popular.set(self.game.id)
|
||||||
|
|
||||||
def _mSelectGameDialog(self, d):
|
def _mSelectGameDialog(self, d):
|
||||||
if d.status == 0 and d.button == 0 and d.gameid != self.game.id:
|
if d.status == 0 and d.button == 0 and d.gameid != self.game.id:
|
||||||
|
|
Loading…
Add table
Reference in a new issue