Skip to content

Commit

Permalink
This fixes a problem where nothing happens after preConnectMsg
Browse files Browse the repository at this point in the history
Seems that the electron `showMessageBox` call changed to return Promise (https://electronjs.org/docs/api/dialog?q=%2F#dialogshowmessageboxbrowserwindow-options)
  • Loading branch information
markrileybot committed Jan 15, 2020
1 parent 3524f5f commit 8e1ded1
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions client/www/js/profileView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8e1ded1

Please sign in to comment.