Retera / WarsmashModEngine

An emulation engine to improve Warcraft III modding
GNU Affero General Public License v3.0
192 stars 37 forks source link

Force MapListContainers' selection listener to update once when choosing a same map. #29

Closed bearU369 closed 1 year ago

bearU369 commented 1 year ago

I think it make sense for MapListContainers to only update the selected map once if a different map is being selected otherwise it's selection listener would be interrupted shortly. This would benefit both memory and performance to avoid constantly allocating new mapInfo and mapConfig pinpointed to the same map; and to avoid a sudden lag spike from spam-clicking a large map.