invalidate asset cache on metadata changes and refresh asset details

This commit is contained in:
2026-03-24 13:42:51 +00:00
parent a7710be847
commit d773e8684b
8 changed files with 182 additions and 11 deletions
@@ -104,6 +104,14 @@ public final class AssetDetailsControl extends VBox implements StudioEventAware
@Override
public void registerEventSubscriptions() {
eventBindings.listen(workspaceBus, StudioAssetsRefreshRequestedEvent.class).handle(event -> {
if (event.preferredAssetReference() != null) {
loadSelection(event.preferredAssetReference());
return;
}
if (event.deepSync() && viewState.selectedAssetReference() != null) {
loadSelection(viewState.selectedAssetReference());
return;
}
if (event.preferredAssetReference() == null) {
clearSelection();
}