Pengfei Zhu 60669a7dd8
swkbd: Fix a bug where clicking Cancel hangs the game (#5294)
* swkbd: Fix a bug where clicking Cancel hangs the game

The text is validated in `Finalize`. If the validation fails, an error is returned and the applet is not actually finalized. This can result in hangs.

This is usually not a problem as the frontend is expected to validate the text passed to `Finalize`. However, when the user clicked on `Cancel`, the text is ignored and the frontend won't do any validation. Therefore, we should skip the validation here as well.

Also fixed a potential data race. All these functions should now be called on the same thread

* Address review comments

Renamed the fields
Remove close button
2020-05-04 11:31:17 +02:00
..
2020-04-06 20:26:41 +01:00
2020-03-21 12:02:21 +08:00
2020-02-21 19:31:32 +01:00
2018-09-06 16:03:28 -04:00
2020-04-13 18:08:15 +01:00
2020-02-13 17:39:15 +08:00
2020-04-10 20:22:40 +01:00
2020-04-02 22:42:50 -05:00