chore: disable quick ask (#3334)

This commit is contained in:
Louis 2024-08-09 23:30:00 +07:00 committed by GitHub
parent 5eb112142c
commit 6e4b6b09ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -12,7 +12,7 @@ const defaultJanDataFolder = join(os.homedir(), 'jan')
const defaultAppConfig: AppConfiguration = {
dataFolderPath: defaultJanDataFolder,
quickAsk: true,
quickAsk: false,
cortexCppHost: '127.0.0.1',
cortexCppPort: 3940,
apiServerHost: '127.0.0.1',
@ -80,7 +80,10 @@ export const getAppConfigurations = (): AppConfiguration => {
const configYaml = readFileSync(configurationFile, 'utf-8')
const appConfigurations = load(configYaml) as AppConfiguration
console.debug('app config', appConfigurations)
return appConfigurations
return {
...appConfigurations,
quickAsk: false,
}
} catch (err) {
console.error(
`Failed to read app config, return default config instead! Err: ${err}`

View File

@ -6,7 +6,7 @@ const PROXY_FEATURE_ENABLED = 'proxyFeatureEnabled'
const VULKAN_ENABLED = 'vulkanEnabled'
const IGNORE_SSL = 'ignoreSSLFeature'
const HTTPS_PROXY_FEATURE = 'httpsProxyFeature'
const QUICK_ASK_ENABLED = 'quickAskEnabled'
//const QUICK_ASK_ENABLED = 'quickAskEnabled'
const MIGRATION_WARNING = 'didShowMigrationWarning'
export const janDataFolderPathAtom = atom('')
@ -20,7 +20,7 @@ export const proxyAtom = atomWithStorage(HTTPS_PROXY_FEATURE, '')
export const ignoreSslAtom = atomWithStorage(IGNORE_SSL, false)
export const vulkanEnabledAtom = atomWithStorage(VULKAN_ENABLED, false)
export const quickAskEnabledAtom = atomWithStorage(QUICK_ASK_ENABLED, false)
export const quickAskEnabledAtom = atom<boolean>(false) //atomWithStorage(QUICK_ASK_ENABLED, false)
export const didShowMigrationWarningAtom = atomWithStorage(
MIGRATION_WARNING,
false,