fix(status_bar): code mime not updating between notes

This commit is contained in:
Elian Doran
2025-12-13 01:14:50 +02:00
parent 88a779bbdb
commit 40fcf79778

View File

@@ -349,7 +349,7 @@ export function useActiveNoteContext() {
useEffect(() => {
setNote(noteContext?.note);
}, [ noteContext ]);
}, [ notePath ]);
useTriliumEvents([ "setNoteContext", "activeContextChanged", "noteSwitchedAndActivated", "noteSwitched" ], () => {
const noteContext = appContext.tabManager.getActiveContext() ?? undefined;