Fix Remind Me Later not working

This commit is contained in:
Yuya Ochiai
2017-12-14 00:25:17 +09:00
parent 0bec4ab5a3
commit fbcb08fa6e

View File

@@ -100,7 +100,9 @@ function initialize(appState, mainWindow, notifyOnly = false) {
updaterModal.close();
}).on('click-remind', () => {
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();
}).on('click-install', () => {
downloadAndInstall();
@@ -123,7 +125,9 @@ function initialize(appState, mainWindow, notifyOnly = false) {
message: 'You have the latest version of the Mattermost Desktop App.'
}, () => {}); // eslint-disable-line no-empty-function
}
setTimeout(autoUpdater.checkForUpdates, INTERVAL_48_HOURS_IN_MS);
setTimeout(() => {
autoUpdater.checkForUpdates();
}, INTERVAL_48_HOURS_IN_MS);
});
}