chore: disable quick ask (#3334)
This commit is contained in:
parent
5eb112142c
commit
6e4b6b09ae
@ -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}`
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user