Skip to content

Commit

Permalink
perf: persist tts voices
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Sep 19, 2024
1 parent 6c6b082 commit 9ea05b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/renderer/src/modules/settings/tabs/general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
SelectTrigger,
SelectValue,
} from "~/components/ui/select"
import { useProxyValue, useSetProxy } from "~/hooks/common/useProxySetting"
import { useProxyValue, useSetProxy } from "~/hooks/common/useProxySetting"
import { fallbackLanguage } from "~/i18n"
import { initPostHog } from "~/initialize/posthog"
import { tipcClient } from "~/lib/client"
Expand Down Expand Up @@ -177,6 +177,9 @@ export const VoiceSelector = () => {
const { data } = useQuery({
queryFn: () => tipcClient?.getVoices(),
queryKey: ["voices"],
meta: {
persist: true,
},
})
const voice = useUISettingSelector((state) => state.voice)

Expand Down

0 comments on commit 9ea05b9

Please sign in to comment.