Skip to content

Commit

Permalink
Fix update check
Browse files Browse the repository at this point in the history
  • Loading branch information
pcprince committed Jan 9, 2023
1 parent f52c6d4 commit bfb148e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ electron.ipcRenderer.on('update-check', function () {

console.error(response.error);

dialog.showMessageBox(currentWindow.getFocusedWindow(), {
dialog.showMessageBox(currentWindow, {
type: 'error',
title: 'Failed to check for updates',
message: response.error
Expand All @@ -446,7 +446,7 @@ electron.ipcRenderer.on('update-check', function () {

if (response.updateNeeded === false) {

dialog.showMessageBox(currentWindow.getFocusedWindow(), {
dialog.showMessageBox(currentWindow, {
type: 'info',
buttons: ['OK'],
title: 'Update not needed',
Expand Down

0 comments on commit bfb148e

Please sign in to comment.