From 1a3aa8a4e79deb501fce0c89ace8ea960003d8cd Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 29 Dec 2023 10:50:42 -0500
Subject: fixed sidebar button highoighting. fixed explore mode.

---
 src/client/views/newlightbox/NewLightboxView.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/client/views/newlightbox/NewLightboxView.tsx')

diff --git a/src/client/views/newlightbox/NewLightboxView.tsx b/src/client/views/newlightbox/NewLightboxView.tsx
index f3cde3f5a..6980e31c1 100644
--- a/src/client/views/newlightbox/NewLightboxView.tsx
+++ b/src/client/views/newlightbox/NewLightboxView.tsx
@@ -23,6 +23,7 @@ import { emptyBounds, IBounds } from './ExploreView/utils';
 import { NewLightboxHeader } from './Header';
 import './NewLightboxView.scss';
 import { RecommendationList } from './RecommendationList';
+import { SnappingManager } from '../../util/SnappingManager';
 
 enum LightboxStatus {
     RECOMMENDATIONS = 'recommendations',
@@ -126,7 +127,7 @@ export class NewLightboxView extends React.Component<LightboxViewProps> {
             this._docFilters && (this._docFilters.length = 0);
             this._future = this._history = [];
             Doc.ActiveTool = InkTool.None;
-            DocumentView.ExploreMode = false;
+            SnappingManager.SetExploreMode(false);
         } else {
             const l = DocUtils.MakeLinkToActiveAudio(() => doc).lastElement();
             l && (Cast(l.link_anchor_2, Doc, null).backgroundColor = 'lightgreen');
-- 
cgit v1.2.3-70-g09d2

