TEdit / Terraria-Map-Editor

TEdit - Terraria Map Editor - TEdit is a stand alone, open source map editor for Terraria. It lets you edit maps just like (almost) paint! It also lets you change world settings (time, bosses downed etc), edit chests and change sign, make epic dungeons, castles, cities, and add rewards for your adventurers!
https://docs.binaryconstruct.com/
Other
1.6k stars 340 forks source link

Fixed World Progress Reporting and Asynchronous Saving. #1915

Closed RussDev7 closed 2 months ago

RussDev7 commented 2 months ago

Changes and Fixes

Before (Stuck on validating): TEdit-Saving-Broken

After (Proper report): TEdit-Saving-Fix

1. Asynchronous Save Method

Previous Implementation

New Implementation

2. Progress Reporting in SaveAsync

3. File Handling Improvements

4. Task Creation and Continuation

Previous Implementation

New Implementation

5. Dispatcher Helper for UI Updates

Conclusion

These updates improve the responsiveness and usability of the saving functionality by making it asynchronous and ensuring progress is correctly reported. The use of IProgress<ProgressChangedEventArgs> and proper handling of asynchronous tasks ensure a smoother user experience.