diff --git a/src/MenuBar.tsx b/src/MenuBar.tsx index bea59a330..15ea91cfa 100644 --- a/src/MenuBar.tsx +++ b/src/MenuBar.tsx @@ -16,7 +16,6 @@ import path from 'path'; export type DefaultKeyboardAction = 'clear' | 'goToBottom' | 'createPaste'; export type TopLevelMenu = 'Edit' | 'View' | 'Window' | 'Help'; -const {dialog} = electron.remote; export type KeyboardAction = { action: string; @@ -177,7 +176,7 @@ function getTemplate( label: 'File...', accelerator: 'CommandOrControl+E', click: function() { - dialog.showSaveDialog( + electron.remote.dialog.showSaveDialog( null, { title: 'FlipperExport', diff --git a/src/index.tsx b/src/index.tsx index 9a4d48848..814d7a9b5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -174,3 +174,4 @@ export { export {InspectorSidebar} from './ui/components/elements-inspector/sidebar'; export {Console} from './ui/components/console'; export {default as Sheet} from './ui/components/Sheet'; +export {KeyboardActions} from './MenuBar';