mirror of
https://github.com/voideditor/void
synced 2026-05-23 17:38:23 +00:00
fix
This commit is contained in:
parent
ec5b7636be
commit
ec3b7caa8e
2 changed files with 9 additions and 6 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue