Skip to content

Comments

make promotion dialog dissapear if pressed back#2045

Merged
veloce merged 1 commit intolichess-org:mainfrom
HaonRekcef:fix-going-back-while-promoting-otb
Aug 5, 2025
Merged

make promotion dialog dissapear if pressed back#2045
veloce merged 1 commit intolichess-org:mainfrom
HaonRekcef:fix-going-back-while-promoting-otb

Conversation

@HaonRekcef
Copy link
Collaborator

While testing lichess-org/flutter-chessground#79 I noticed that the promotion dialog doesn't disappear when pressing back in the GameScreen, OTB Game Screen, and Offline Correspondence Screen. This can lead to strange behavior see the video below:

strange-behavior-promotion.webm

This PR fixes the issue in all the affected screens I could find. In the analysis screens this is already handled correctly by the _setPath function.

Copy link
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! thanks.

@veloce veloce merged commit 97b4518 into lichess-org:main Aug 5, 2025
1 check passed
@HaonRekcef HaonRekcef deleted the fix-going-back-while-promoting-otb branch August 5, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants