Skip to content

Commit

Permalink
Corrected missed logic in the Kivy menubar.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Sep 14, 2023
1 parent e5f675d commit 40bd9f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pysollib/kivy/menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,7 @@ def _createTkOpt(self):
highlight_cards=BooleanVar(),
highlight_samerank=BooleanVar(),
highlight_not_matching=BooleanVar(),
peek_facedown=BooleanVar(),
stuck_notification=BooleanVar(),
mahjongg_show_removed=BooleanVar(),
shisen_show_hint=BooleanVar(),
Expand Down Expand Up @@ -1393,6 +1394,7 @@ def _setOptions(self):
tkopt.highlight_piles.set(opt.highlight_piles)
tkopt.highlight_cards.set(opt.highlight_cards)
tkopt.highlight_samerank.set(opt.highlight_samerank)
tkopt.peek_facedown.set(opt.peek_facedown)
tkopt.highlight_not_matching.set(opt.highlight_not_matching)
tkopt.stuck_notification.set(opt.stuck_notification)
tkopt.shrink_face_down.set(opt.shrink_face_down)
Expand Down Expand Up @@ -2136,6 +2138,12 @@ def mOptEnableHighlightSameRank(self, *args):
self.app.opt.highlight_samerank = self.tkopt.highlight_samerank.get()
# self.game.updateMenus()

def mOptEnablePeekFacedown(self, *args):
if self._cancelDrag(break_pause=False):
return
self.app.opt.peek_facedown = self.tkopt.peek_facedown.get()
# self.game.updateMenus()

def mOptEnableHighlightNotMatching(self, *args):
if self._cancelDrag(break_pause=False):
return
Expand Down

0 comments on commit 40bd9f0

Please sign in to comment.