diff options
author | bobzel <zzzman@gmail.com> | 2023-03-01 18:15:56 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-03-01 18:15:56 -0500 |
commit | 52f74a0055c71a67bc5c4bf2c202715544a0de1d (patch) | |
tree | d7c22cac3b78bcda38a65b1500f8a6d6f497f963 /src/client/views/LightboxView.tsx | |
parent | 9c29092fc9df29c02cc83885e4ba5645b71867d4 (diff) |
cleaned up recentlyPlaying to allow clips to be turned on/off w/o navigating to them.
Diffstat (limited to 'src/client/views/LightboxView.tsx')
-rw-r--r-- | src/client/views/LightboxView.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx index c9b1dcfd8..8d60da0dd 100644 --- a/src/client/views/LightboxView.tsx +++ b/src/client/views/LightboxView.tsx @@ -68,11 +68,7 @@ export class LightboxView extends React.Component<LightboxViewProps> { const l = DocUtils.MakeLinkToActiveAudio(() => doc).lastElement(); l && (Cast(l.anchor2, Doc, null).backgroundColor = 'lightgreen'); } - CollectionStackedTimeline.CurrentlyPlaying?.forEach(doc => { - DocumentManager.Instance.getAllDocumentViews(doc).forEach(dv => { - dv.ComponentView?.Pause?.(); - }); - }); + CollectionStackedTimeline.CurrentlyPlaying?.forEach(dv => dv.ComponentView?.Pause?.()); //TabDocView.PinDoc(doc, { hidePresBox: true }); this._history ? this._history.push({ doc, target }) : (this._history = [{ doc, target }]); if (doc !== LightboxView.LightboxDoc) { |