diff --git a/electron/utils/path.ts b/electron/utils/path.ts index 0bfadee1df..6ca495c978 100644 --- a/electron/utils/path.ts +++ b/electron/utils/path.ts @@ -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}` diff --git a/web/helpers/atoms/AppConfig.atom.ts b/web/helpers/atoms/AppConfig.atom.ts index 9b8cba186a..1212582004 100644 --- a/web/helpers/atoms/AppConfig.atom.ts +++ b/web/helpers/atoms/AppConfig.atom.ts @@ -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(false) //atomWithStorage(QUICK_ASK_ENABLED, false) export const didShowMigrationWarningAtom = atomWithStorage( MIGRATION_WARNING, false,