invalidate asset cache on metadata changes and refresh asset details
This commit is contained in:
+8
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user