Making the save file dialog sync to ensure working properly on MacOS and others
This commit is contained in:
@@ -299,7 +299,8 @@ module.exports = class TorrentListController {
|
||||
]
|
||||
}
|
||||
|
||||
electron.remote.dialog.showSaveDialog(win, opts, function (savePath) {
|
||||
const savePath = electron.remote.dialog.showSaveDialogSync(win, opts)
|
||||
|
||||
console.log('Saving torrent ' + torrentKey + ' to ' + savePath)
|
||||
if (!savePath) return // They clicked Cancel
|
||||
const torrentPath = TorrentSummary.getTorrentPath(torrentSummary)
|
||||
@@ -309,7 +310,6 @@ module.exports = class TorrentListController {
|
||||
if (err) return dispatch('error', err)
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user