ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Can't get number of re-entries back after erasing them in Create dialog #1266

Closed ctm closed 7 months ago

ctm commented 7 months ago

Fix it so that a player can get the number of re-entries back to the structure value after they've been erased in the Create dialog without having to reload the Lobby.

Currently, if someone sets late registration to None, the Option associated with the structure that's being displayed is also set to None, and there's no way to restore it other than reloading the lobby. However, if before we set it to None, we note what the current structure name is and that ReEntryInfo, then we can swap that info back in the next time we switch structures.

That's a hinky interface, but it's pretty easy to document and to discover accidentally, whereas it's trivial to document reloading the lobby, but doing so can lose chat and is unlikely to be discovered accidentally.

ctm commented 7 months ago

Done. Deploying now.