Allow deferring of Update Toast until the next morning
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
1fd74f22c8
commit
66272fc226
3 changed files with 7 additions and 11 deletions
|
@ -275,8 +275,10 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||
return this._ipcCall('getConfig');
|
||||
}
|
||||
|
||||
async onUpdateDownloaded(ev, updateInfo) {
|
||||
showUpdateToast(await this.getAppVersion(), updateInfo, updateInfo.releaseNotes);
|
||||
async onUpdateDownloaded(ev, {releaseNotes, releaseName}) {
|
||||
if (this.shouldShowUpdate(releaseName)) {
|
||||
showUpdateToast(await this.getAppVersion(), releaseName, releaseNotes);
|
||||
}
|
||||
}
|
||||
|
||||
getHumanReadableName(): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue