Skip to content

Commit

Permalink
fix: better user confirmation message
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar authored Feb 23, 2023
1 parent cc84a66 commit d088e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit d088e66

Please sign in to comment.