From 254f44538808b0aee94036330de5225b778d4513 Mon Sep 17 00:00:00 2001 From: Joe R Date: Fri, 10 Nov 2023 20:37:53 -0500 Subject: [PATCH] Update the menu's game ID after changing the game, in case the user cancels. --- pysollib/ui/tktile/menubar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index d055bbab..6aa63c0c 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -1139,9 +1139,11 @@ class PysolMenubarTkCommon: 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: