diff options
author | bobzel <zzzman@gmail.com> | 2023-05-16 20:41:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-05-16 20:41:37 -0400 |
commit | d3ecf7bdacd925fcd293a300c53206b12bee8ce9 (patch) | |
tree | 06a9d0f0b5809d2c7b6c1257f93c6bf7e77dbea0 /src/client/views/nodes/DocumentView.tsx | |
parent | 46cf6c823ca8ab628cd8c5bd7fdfe8945344a014 (diff) |
cleaned up UndoStack a bit to be available with the undo/redo buttons (using Long Press).
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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<DocumentViewInternalProps this._longPressSelector = setTimeout(() => { if (DocumentView.LongPress) { if (this.rootDoc.dontUndo) { - OverlayView.Instance.addWindow(<UndoStack />, { x: 300, y: 100, width: 200, height: 200, title: 'Undo Stack' }); + runInAction(() => (UndoStack.HideInline = !UndoStack.HideInline)); } else { this.props.select(false); } |