Skip to content

Commit

Permalink
Consolidate raiseAll logic into app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Dec 25, 2024
1 parent cafdafe commit 5005ef6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions pysollib/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,11 +834,6 @@ def mOptTimeouts(self, *args):
self.app.opt.timeouts['highlight_samerank'] = \
d.highlight_samerank_timeout

def raiseAll(self):
raise_find_card_dialog(self.game)
raise_full_picture_dialog(self.game)
raise_solver_dialog(self.game)

#
# Help menu
#
Expand Down
5 changes: 4 additions & 1 deletion pysollib/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,13 @@ def wm_toggle_fullscreen(self):
self.opt.wm_fullscreen = not self.opt.wm_fullscreen
self.top.attributes("-fullscreen", self.opt.wm_fullscreen)
# Topmost dialogs need to be reset when toggling fullscreen.
self.raiseAll()
self.top.attributes('-topmost', False)

def raiseAll(self):
raise_find_card_dialog(self.game)
raise_full_picture_dialog(self.game)
raise_solver_dialog(self.game)
self.top.attributes('-topmost', False)

def loadImages1(self):
# load dialog images
Expand Down
2 changes: 1 addition & 1 deletion pysollib/ui/tktile/menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ def mOptTopmostDialogs(self, *event):
if self._cancelDrag(break_pause=False):
return
self.app.opt.topmost_dialogs = self.tkopt.topmost_dialogs.get()
self.raiseAll()
self.app.raiseAll()

def _mOptCardback(self, index):
if self._cancelDrag(break_pause=False):
Expand Down

0 comments on commit 5005ef6

Please sign in to comment.