Fix Remind Me Later not working
This commit is contained in:
@@ -100,7 +100,9 @@ function initialize(appState, mainWindow, notifyOnly = false) {
|
|||||||
updaterModal.close();
|
updaterModal.close();
|
||||||
}).on('click-remind', () => {
|
}).on('click-remind', () => {
|
||||||
appState.updateCheckedDate = new Date();
|
appState.updateCheckedDate = new Date();
|
||||||
setTimeout(autoUpdater.checkForUpdates, INTERVAL_48_HOURS_IN_MS);
|
setTimeout(() => { // eslint-disable-line max-nested-callbacks
|
||||||
|
autoUpdater.checkForUpdates();
|
||||||
|
}, INTERVAL_48_HOURS_IN_MS);
|
||||||
updaterModal.close();
|
updaterModal.close();
|
||||||
}).on('click-install', () => {
|
}).on('click-install', () => {
|
||||||
downloadAndInstall();
|
downloadAndInstall();
|
||||||
@@ -123,7 +125,9 @@ function initialize(appState, mainWindow, notifyOnly = false) {
|
|||||||
message: 'You have the latest version of the Mattermost Desktop App.'
|
message: 'You have the latest version of the Mattermost Desktop App.'
|
||||||
}, () => {}); // eslint-disable-line no-empty-function
|
}, () => {}); // eslint-disable-line no-empty-function
|
||||||
}
|
}
|
||||||
setTimeout(autoUpdater.checkForUpdates, INTERVAL_48_HOURS_IN_MS);
|
setTimeout(() => {
|
||||||
|
autoUpdater.checkForUpdates();
|
||||||
|
}, INTERVAL_48_HOURS_IN_MS);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user