From 58dc9a5886a91b7b517023380af0ceabb0b3535f Mon Sep 17 00:00:00 2001 From: Joe R Date: Mon, 13 Jun 2022 17:06:46 -0400 Subject: [PATCH] Fixed toolbar state for new hint button. --- pysollib/actions.py | 1 + pysollib/kivy/toolbar.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pysollib/actions.py b/pysollib/actions.py index 07c41114..1d5c2392 100644 --- a/pysollib/actions.py +++ b/pysollib/actions.py @@ -216,6 +216,7 @@ class PysolMenubar(PysolMenubarTk): self.setToolbarState(ms.undo, "undo") self.setToolbarState(ms.redo, "redo") self.setToolbarState(ms.autodrop, "autodrop") + self.setToolbarState(ms.hint, "hint") self.setToolbarState(ms.shuffle, "shuffle") self.setToolbarState(ms.pause, "pause") self.setToolbarState(ms.rules, "rules") diff --git a/pysollib/kivy/toolbar.py b/pysollib/kivy/toolbar.py index 5f72441f..01d5bd83 100644 --- a/pysollib/kivy/toolbar.py +++ b/pysollib/kivy/toolbar.py @@ -198,7 +198,7 @@ class PysolToolbarTk(BoxLayout): (n_("Redo"), self.mRedo, _("Redo last move")), (n_("Autodrop"), self.mDrop, _("Auto drop cards")), (n_("Shuffle"), self.mShuffle, _("Shuffle tiles")), - (n_("Hint"), self.mPause, _("Hint")), + (n_("Hint"), self.mHint, _("Hint")), (n_("Pause"), self.mPause, _("Pause game")), (None, None, None), # (n_("Statistics"), self.mPlayerStats, _("View statistics")),