From 8e1ded1ce10271a6d6bbff2a3f98658f0dfb5315 Mon Sep 17 00:00:00 2001 From: Mark Riley Date: Wed, 15 Jan 2020 13:37:19 -0500 Subject: [PATCH] This fixes a problem where nothing happens after preConnectMsg Seems that the electron `showMessageBox` call changed to return Promise (https://electronjs.org/docs/api/dialog?q=%2F#dialogshowmessageboxbrowserwindow-options) --- client/www/js/profileView.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/client/www/js/profileView.js b/client/www/js/profileView.js index 475440db4..f4656928e 100644 --- a/client/www/js/profileView.js +++ b/client/www/js/profileView.js @@ -420,15 +420,14 @@ var renderProfile = function(index, prfl) { message: 'Connecting to ' + data.name, detail: preConnectMsg, buttons: ['Disconnect', 'Connect'], - }, - function(resp) { - if (resp === 1) { - prflConnect(); - } else { - closeMenu($profile); - } - }, - ); + } + ).then(function(resp) { + if (resp.response === 1) { + prflConnect(); + } else { + closeMenu($profile); + } + }); } else { prflConnect(); }