mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
[client-app] Make sure to fetch latest update url every time we check for updates
Summary: Previously, is you signed out of your NylasID, you would not pick up new updates because we never updated the autoupdater url to use the new id. Test Plan: manual Reviewers: mark, halla, evan Reviewed By: halla, evan Differential Revision: https://phab.nylas.com/D4346
This commit is contained in:
parent
d1b81b6afe
commit
7d99567855
1 changed files with 1 additions and 5 deletions
|
@ -30,11 +30,6 @@ export default class AutoUpdateManager extends EventEmitter {
|
|||
|
||||
this.updateFeedURL();
|
||||
|
||||
this.config.onDidChange(
|
||||
'nylas.accounts',
|
||||
this.updateFeedURL
|
||||
);
|
||||
|
||||
setTimeout(() => this.setupAutoUpdater(), 0);
|
||||
}
|
||||
|
||||
|
@ -157,6 +152,7 @@ export default class AutoUpdateManager extends EventEmitter {
|
|||
}
|
||||
|
||||
check({hidePopups} = {}) {
|
||||
this.updateFeedURL();
|
||||
if (!hidePopups) {
|
||||
autoUpdater.once('update-not-available', this.onUpdateNotAvailable);
|
||||
autoUpdater.once('error', this.onUpdateError);
|
||||
|
|
Loading…
Reference in a new issue