summaryrefslogtreecommitdiff
path: root/editor/editor.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-06-03 11:41:28 +0200
committerSébastien Dailly <sebastien@dailly.me>2022-02-07 16:43:33 +0100
commita6e30a95b5dcd34fb9e65d9a26f0844ec75bb004 (patch)
treeda22adc487aa729e5c18f9c282eb48a77a54d7c1 /editor/editor.ml
parent8bb6631ea1c8f54071d09ced2d62a16d6319e6f6 (diff)
Greyed the delete button on main page
Diffstat (limited to 'editor/editor.ml')
-rwxr-xr-xeditor/editor.ml11
1 files changed, 2 insertions, 9 deletions
diff --git a/editor/editor.ml b/editor/editor.ml
index f27c60c..9eee49e 100755
--- a/editor/editor.ml
+++ b/editor/editor.ml
@@ -153,16 +153,9 @@ let app id content =
]) in
- let change_event =
- Note.S.changes app_state in
-
- let childs = Editor_actions.complete side_elements change_event in
+ let childs = Editor_actions.complete side_elements app_state in
let () = El.append_children sidebar childs in
- let _ =
- Note.E.log change_event
- (fun _ -> ())
- |> Option.iter Note.Logr.hold
- in
+ let _ = Note.(Logr.hold (S.log app_state (fun _ -> ()))) in
()
| _ ->