Stromner / ACE-TitanQuest

Titan Quest Character Editor
Apache License 2.0
4 stars 6 forks source link

UI - No check for valid file #6

Closed Stromner closed 4 years ago

Stromner commented 4 years ago

If a file fail to parse the UI should not lock itself, instead the wait dialogue should die and an error message appear

Stromner commented 4 years ago

Tinkered a bit with it, solution-wise it's not hard but the parser code ends up with throws declaration on nearly all methods. Maybe use a listener or similar pattern instead to get cleaner code? If so apply same logic to all of the data layer.

Stromner commented 4 years ago

EventListener might be a good solution to the problem

Stromner commented 4 years ago

Fixed by 389f4e8ab60d5b4f30c3a7d1d9ce47f326f0f4cf