Skip to content

Commit

Permalink
chore: disable quick ask (#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Aug 9, 2024
1 parent 5eb1121 commit 6e4b6b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions electron/utils/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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}`
Expand Down
4 changes: 2 additions & 2 deletions web/helpers/atoms/AppConfig.atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('')

Expand All @@ -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,
Expand Down

0 comments on commit 6e4b6b0

Please sign in to comment.