1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Electron: Fixes #630: PDF export in context menu

This commit is contained in:
Laurent Cozic 2018-06-17 17:12:24 +01:00
parent f5a72ffbaf
commit 971339ca9a

View File

@ -119,6 +119,13 @@ class NoteListComponent extends React.Component {
}})); }}));
} }
exportMenu.append(new MenuItem({ label: 'PDF - ' + _('PDF File') , click: () => {
this.props.dispatch({
type: 'WINDOW_COMMAND',
name: 'exportPdf',
});
}}));
const exportMenuItem = new MenuItem({label: _('Export'), submenu: exportMenu}); const exportMenuItem = new MenuItem({label: _('Export'), submenu: exportMenu});
menu.append(exportMenuItem); menu.append(exportMenuItem);