New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IUpdateService#isLatestVersion #53226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
protected doQuitAndInstall(): void { | ||
// noop | ||
} | ||
|
||
protected abstract setUpdateFeedUrl(quality: string): boolean; | ||
protected abstract buildUpdateFeedUrl(quality: string): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it return string | undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check
try { | ||
electron.autoUpdater.setFeedURL(createUpdateURL('darwin', quality)); | ||
electron.autoUpdater.setFeedURL(url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not too happy that buildUpdateFeedUrl
causes state to change in this service... but oh well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not nice, but no bad side effects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, it shouldn't behave different than before. The method is called as before, it just returns a string instead of a boolean... The name should maybe indicate the state-fullness but oh well
No description provided.