mirror of
https://github.com/felvesthe/Note-Locker.git
synced 2026-07-22 05:44:06 +00:00
Exclude "Lock" option in context menu for folders
Signed-off-by: Felvesthe <23108389+Felvesthe@users.noreply.github.com>
This commit is contained in:
parent
38c5a0e500
commit
fe4652abc1
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ export default class NoteLockerPlugin extends Plugin {
|
|||
}
|
||||
|
||||
private addLockMenuItem(menu: Menu, filePath: string) {
|
||||
const isNote = filePath.endsWith('.md');
|
||||
if (!isNote) return;
|
||||
|
||||
const isLocked = this.settings.lockedNotes.has(filePath);
|
||||
menu.addItem((item) =>
|
||||
item
|
||||
|
|
|
|||
Loading…
Reference in a new issue