public void Setup(PackageCollection collection) { LastUpdateTime = collection.lastUpdateTime; UpdateStatusMessage(); StatusLabel.RegisterCallback <MouseDownEvent>(e => { collection.FetchListOfflineCache(true); collection.FetchListCache(true); collection.FetchSearchCache(true); }); }
public void Setup(PackageCollection collection) { LastUpdateTime = collection.lastUpdateTime; UpdateStatusMessage(); StatusLabel.RegisterCallback <MouseDownEvent>(e => { // only react to left mouse button if (e.button != 0) { return; } if (!EditorApplication.isPlaying) { collection.FetchListOfflineCache(true); collection.FetchListCache(true); collection.FetchSearchCache(true); } }); }