1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

Desktop: Added support for Menu API for plugins

This commit is contained in:
Laurent Cozic
2020-10-13 12:57:03 +01:00
parent 2caaf8e8c1
commit c648f19693
37 changed files with 5561 additions and 34 deletions

View File

@ -69,7 +69,7 @@ export default class MenuUtils {
return KeymapService.instance();
}
private commandToMenuItem(commandName:string, onClick:Function):MenuItem {
public commandToMenuItem(commandName:string, onClick:Function):MenuItem {
const command = this.service.commandByName(commandName);
const item:MenuItem = {