acoppes / unity-history-window

A simple selection history window for Unity.
MIT License
293 stars 24 forks source link

Selection history entry not refreshed when selected asset is renamed #51

Open acoppes opened 4 months ago

acoppes commented 4 months ago

It is fixed once the selection history is refreshed by another reason, but would be interesting to update it when object rename is completed.

This happens to the favorites window too.

Not sure if I can do much, my only idea for now is to try to refresh entry names after a selection change (and maybe only visible objects). Another idea could be to create a custom visual element and refresh it all the time if that is possible but not sure if I want the perf cost.

hsandt commented 2 months ago

If not possible, at least when trying to click to highlight or double-click to open the asset, it could show an error message and possibly offer to refresh or remove the bad old favorite. Currently it does nothing, I thought I had not correctly double-clicked.

When dragging the renamed asset once more to the favorites list, it replaced the old favorite properly, but only because it had pass to refresh all the asset names and paths in the list. So the feature exists, we just need to trigger it automatically after rename.