1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Plugins: Provides selected notes when triggering a command from the note list context menu

This commit is contained in:
Laurent Cozic
2020-11-21 12:35:19 +00:00
parent d953f6bcab
commit 4ac2409318
3 changed files with 24 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ export default class NoteListUtils {
if (location !== MenuItemLocation.Context && location !== MenuItemLocation.NoteListContextMenu) continue;
menu.append(
new MenuItem(menuUtils.commandToStatefulMenuItem(info.view.commandName))
new MenuItem(menuUtils.commandToStatefulMenuItem(info.view.commandName, noteIds))
);
}