From d3ecf7bdacd925fcd293a300c53206b12bee8ce9 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 16 May 2023 20:41:37 -0400 Subject: cleaned up UndoStack a bit to be available with the undo/redo buttons (using Long Press). --- src/client/views/nodes/DocumentView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/nodes') diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 52eee84ac..10ef1e6af 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -506,7 +506,7 @@ export class DocumentViewInternal extends DocComponent { if (DocumentView.LongPress) { if (this.rootDoc.dontUndo) { - OverlayView.Instance.addWindow(, { x: 300, y: 100, width: 200, height: 200, title: 'Undo Stack' }); + runInAction(() => (UndoStack.HideInline = !UndoStack.HideInline)); } else { this.props.select(false); } -- cgit v1.2.3-70-g09d2