Skip to content

Commit

Permalink
Fix slow dealing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Nov 27, 2024
1 parent a5e0c96 commit f844c0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pysollib/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,8 +1689,9 @@ def dealToStacks(self, stacks, flip=1, reverse=0, frames=-1):
if flip:
self.game.flipMove(self)
self.game.moveMove(1, self, r, frames=frames)
self.game.top.update_idletasks()
self.game.top.busyUpdate()
if frames > 0:
self.game.top.update_idletasks()
self.game.top.busyUpdate()
self.game.leaveState(old_state)
if TOOLKIT == 'kivy':
self.game.top.waitAnimation()
Expand Down

0 comments on commit f844c0e

Please sign in to comment.