Open zsviczian opened 1 year ago
See this issue: https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/798
I recommend adding an app.workspace.off("active-leaf-change",show_hide_toolbar); and checking if activeLeaf.view is a MarkdownView
app.workspace.off("active-leaf-change",show_hide_toolbar);
worth noting that this only happens with "always show toolbar". Perhaps an excalidraw compatibility mode toggle? (I feel silly that it's been months and I didn't know there were undo/erase buttons!
See this issue: https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/798
I recommend adding an
app.workspace.off("active-leaf-change",show_hide_toolbar);
and checking if activeLeaf.view is a MarkdownView