ljramones / trips

A stellar cartography system
Apache License 2.0
15 stars 2 forks source link

update display cache when editing a star #393

Closed ljramones closed 2 years ago

ljramones commented 2 years ago

Very minor problem (?) found. I clicked on a system on the map to change its common name in the Stellar Object Properties. It accepted the name, but didn't change the name in the display. I clicked on a different star, displayed that system's properties, then went back to the system I changed, and I was able to see the name change in that star's Properties page.

image image

The problem is that when we plot on the screen, that information is not changed until we replot and pull it from the database.

The solution is to update the star in the cache when we change it in the DB

ljramones commented 2 years ago

made edit star update the values of the pane forced a refresh of the pane by adding a infintesimal width