From ec3b7caa8e98a317ec0a1ad1d7ac0f57808a0080 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 23 Jun 2025 00:26:09 -0400 Subject: [PATCH] fix --- product.json | 4 ++-- .../void/electron-main/voidUpdateMainService.ts | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/product.json b/product.json index fcc27bfd..d9f03d6e 100644 --- a/product.json +++ b/product.json @@ -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", diff --git a/src/vs/workbench/contrib/void/electron-main/voidUpdateMainService.ts b/src/vs/workbench/contrib/void/electron-main/voidUpdateMainService.ts index 54e0eec6..0760e544 100644 --- a/src/vs/workbench/contrib/void/electron-main/voidUpdateMainService.ts +++ b/src/vs/workbench/contrib/void/electron-main/voidUpdateMainService.ts @@ -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 }