This commit is contained in:
Andrew Pareles 2025-06-23 00:26:09 -04:00
parent ec5b7636be
commit ec3b7caa8e
2 changed files with 9 additions and 6 deletions

View file

@ -1,8 +1,8 @@
{
"nameShort": "Void",
"nameLong": "Void",
"voidVersion": "1.4.6",
"voidRelease": "0041",
"voidVersion": "1.4.7",
"voidRelease": "0042",
"applicationName": "void",
"dataFolderName": ".void-editor",
"win32MutexName": "voideditor",

View file

@ -32,6 +32,12 @@ export class VoidMainUpdateService extends Disposable implements IVoidUpdateServ
return { message: null } as const
}
// if disabled and not explicitly checking, return early
if (this._updateService.state.type === StateType.Disabled) {
if (!explicit)
return { message: null } as const
}
this._updateService.checkForUpdates(false) // implicity check, then handle result ourselves
console.log('updateState', this._updateService.state)
@ -77,10 +83,7 @@ export class VoidMainUpdateService extends Disposable implements IVoidUpdateServ
}
if (this._updateService.state.type === StateType.Disabled) {
if (explicit)
return await this._manualCheckGHTagIfDisabled(explicit)
else
return { message: null, } as const
return await this._manualCheckGHTagIfDisabled(explicit)
}
return null
}