fix(layout): classic toolbar not appearing after making a note temporarily editable

This commit is contained in:
Elian Doran
2025-12-15 12:45:27 +02:00
parent 7edfd5d7b4
commit 4896042fc4

View File

@@ -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);
});