Add conditional menu items and disable sticky notes at root

This commit is contained in:
Idrees Hassan
2025-11-14 00:28:14 -05:00
parent 7639c7c36a
commit 1175c40fa2
11 changed files with 144 additions and 58 deletions

View File

@@ -305,6 +305,11 @@ export class ObsidianContext extends Context {
return path === this.getPath();
}
/** @override */
areStickyNotesEnabled() {
return this.getPath() !== ROOT_PATH;
}
/** @returns {HTMLElement|null} */
getActiveEditorElement() {
// @ts-expect-error