mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Don't show 'new update available' dialog if it's already showing
FREEBIE
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user