RetroAchievements / RAIntegration

The DLL responsible to integrate emulators with RetroAchievements.org
https://retroachievements.org
MIT License
97 stars 23 forks source link

don't clear conditions if toggling decimal while in an error state #1057

Closed Jamiras closed 9 months ago

Jamiras commented 9 months ago

https://discord.com/channels/310192285306454017/962817919698501702/1150788489303048292

When toggling the "Show Decimal" checkbox, the conditions were being rebuilt from the parsed trigger. If there's a parse error (such as multiple measured conditions), there is no parsed trigger to rebuild the editor from.

Solution: Instead of rebuilding the trigger, just update the affected cells of the grid.