feat(config): add skipUpdateCheck to managed config

Signed-off-by: Grigorii K. Shartsev <[email protected]>
This commit is contained in:
Grigorii K. Shartsev committed 2026-11-02 09:53:25 +01:00
1 parent 6d5d8547fc
commit 349d16a9a2
1 file changed
+5 -1
+5 -1
View File
@@ -11,7 +11,7 @@ import { BUILD_CONFIG } from '../shared/build.config.ts'
import { isMac, isWindows } from './system.utils.ts'
import { getWindowsRegistryItem } from './windows.utils.ts'
type ManagedConfigKey = 'accounts' | 'serverUrl'
type ManagedConfigKey = 'accounts' | 'serverUrl' | 'skipUpdateCheck'
type ManagedConfigValueTypes = Pick<UserDefaultTypes, 'string' | 'boolean'>
type ManagedConfigValueType = keyof ManagedConfigValueTypes
@@ -38,8 +38,12 @@ export function readManagedConfig() {
}
}
const skipUpdateCheck = !!readManagedConfigValue('skipUpdateCheck', 'boolean')
return {
accounts,
// TODO: should we only include skipUpdateCheck in managedConfig if it is explicitly set (to true)?
skipUpdateCheck,
}
}