multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
151 stars 151 forks source link

Add a new "restore" button within Editor's "Current Elements" window #401

Closed Haxardous closed 1 year ago

Haxardous commented 1 year ago

Although this commit is for #374 -- it also fixes the problems in #301 (without major changes to object deletions (for not e.g. replacing the dimension method with something else))

Knowing that this commit is also compatible to redo/undo actions*

If anyone is asking why I've used a timer to fix the problem, turns out the showCurrentBrowser() function contains a currentBrowser.prepareSearch() statement which includes a setTimer that delays the updating process to a specific timing, which I suppose it's the reason why calling closing and showing functions will be useless without another timer.

image

Fernando-A-Rocha commented 1 year ago

approved ✔️