diff --git a/src/renderer/javascripts/components/main/sidebar.js b/src/renderer/javascripts/components/main/sidebar.js index 5ca51c3a..5cbcfeac 100644 --- a/src/renderer/javascripts/components/main/sidebar.js +++ b/src/renderer/javascripts/components/main/sidebar.js @@ -13,8 +13,8 @@ const Sidebar = () => { const handleSaveBackup = () => { setDropdown(false) - remote.dialog.showSaveDialog({}, filepath => { - ipcRenderer.send('backup:save', filepath) + remote.dialog.showSaveDialog().then(({ canceled, filePath }) => { + if (!canceled) ipcRenderer.send('backup:save', filePath) }) }