mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
Merge pull request #491 from sharunkumar/patch-1
This commit is contained in:
4
src/view/settings/index.tsx
vendored
4
src/view/settings/index.tsx
vendored
@@ -39,7 +39,7 @@ export default function Settings() {
|
||||
const onReset = async () => {
|
||||
const chatData = await invoke('reset_app_conf');
|
||||
setChatConf(chatData);
|
||||
const isOk = await dialog.ask(`Configuration reset successfully, whether to restart?`, {
|
||||
const isOk = await dialog.ask(`Configuration reset successfully, do you want to restart?`, {
|
||||
title: 'ChatGPT Preferences',
|
||||
});
|
||||
if (isOk) {
|
||||
@@ -52,7 +52,7 @@ export default function Settings() {
|
||||
const onFinish = async (values: any) => {
|
||||
if (!isEqual(omit(chatConf, ['default_origin']), values)) {
|
||||
await invoke('form_confirm', { data: values, label: 'main' });
|
||||
const isOk = await dialog.ask(`Configuration saved successfully, whether to restart?`, {
|
||||
const isOk = await dialog.ask(`Configuration saved successfully, do you want to restart?`, {
|
||||
title: 'ChatGPT Preferences',
|
||||
});
|
||||
if (isOk) {
|
||||
|
||||
Reference in New Issue
Block a user