From 4896042fc4f84d150afc3441b92eee1634acbcde Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 15 Dec 2025 12:45:27 +0200 Subject: [PATCH] fix(layout): classic toolbar not appearing after making a note temporarily editable --- apps/client/src/widgets/ribbon/FormattingToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx index b78734f9f..610063a3c 100644 --- a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx +++ b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx @@ -100,7 +100,7 @@ function useRenderState(activeNoteContext: NoteContext | undefined, activeNote: const [ textNoteEditorType ] = useTriliumOption("textNoteEditorType"); const [ state, setState ] = useState("hidden"); - useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved" ], () => { + useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved", "readOnlyTemporarilyDisabled" ], () => { getFormattingToolbarState(activeNoteContext, activeNote, textNoteEditorType).then(setState); });