electron: adapt exit warning to new version

This commit is contained in:
bordun 2020-01-26 17:40:55 +01:00
parent 9b0b8ce46c
commit feefa95ca6

View file

@ -32,7 +32,7 @@ module.exports = function(options={}) {
})
window.webContents.on('will-prevent-unload', (event)=>{
var choice = dialog.showMessageBox(window, {
var choice = dialog.showMessageBoxSync(window, {
type: 'question',
buttons: ['Yes', 'No'],
title: 'Are you sure ?',