Skip to content

Commit

Permalink
Use showMessageBoxSync instead of showMessageBox (API breaking change…
Browse files Browse the repository at this point in the history
…s), related to #408
  • Loading branch information
jhen0409 committed Oct 19, 2019
1 parent f6dc597 commit d6a4605
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion electron/menu/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const detail = multiline`
`;

export const showAboutDialog = iconPath =>
(remote ? remote.dialog : dialog).showMessageBox({
(remote ? remote.dialog : dialog).showMessageBoxSync({
title: 'About',
message: `${appName} ${app.getVersion()}`,
detail,
Expand Down
4 changes: 3 additions & 1 deletion electron/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const getFeed = () =>
);

const showDialog = ({ icon, buttons, message, detail }) =>
dialog.showMessageBox({
dialog.showMessageBoxSync({
type: 'info',
buttons,
title: 'React Native Debugger',
Expand Down Expand Up @@ -76,11 +76,13 @@ export default (icon, notify) => {
notifyUpdateAvailable({ icon, detail })
) {
updater.download();
console.log('[RNDebugger] Update downloading...');
}
checking = false;
});

updater.on('update-downloaded', () => {
console.log('[RNDebugger] Update downloaded');
if (notifyUpdateDownloaded({ icon })) {
updater.install();
}
Expand Down

0 comments on commit d6a4605

Please sign in to comment.