citra/src/citra_qt/applets
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
..
mii_selector.cpp common/string_util: Move TextFromBuffer to string_util 2019-04-08 22:34:21 +08:00
mii_selector.h Address first batch of review comments 2019-04-07 15:35:32 +02:00
swkbd.cpp swkbd: Fix a bug where clicking Cancel hangs the game (#5294) 2020-05-04 11:31:17 +02:00
swkbd.h swkbd: Fix a bug where clicking Cancel hangs the game (#5294) 2020-05-04 11:31:17 +02:00