Skip to content

Commit

Permalink
Fix save backup dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
alchaplinsky committed Jul 31, 2019
1 parent 3c874e1 commit 8825277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/javascripts/components/main/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 8825277

Please sign in to comment.