Don't show 'new update available' dialog if it's already showing
FREEBIE
This commit is contained in:
parent
f9c4342fc2
commit
80fd70de13
1 changed files with 8 additions and 0 deletions
|
@ -19,7 +19,13 @@ function checkForUpdates() {
|
|||
autoUpdater.checkForUpdates();
|
||||
}
|
||||
|
||||
var showingDialog = false;
|
||||
function showUpdateDialog() {
|
||||
if (showingDialog) {
|
||||
return;
|
||||
}
|
||||
showingDialog = true;
|
||||
|
||||
const options = {
|
||||
type: 'info',
|
||||
buttons: [
|
||||
|
@ -38,6 +44,8 @@ function showUpdateDialog() {
|
|||
windowState.markShouldQuit();
|
||||
autoUpdater.quitAndInstall();
|
||||
}
|
||||
|
||||
showingDialog = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue