diff --git a/src/background.js b/src/background.js index 5c772180c1..bb9ec3b9af 100644 --- a/src/background.js +++ b/src/background.js @@ -310,7 +310,7 @@ ipcMain.handle("save-proxy-setting", async (event, args) => { }); }); -ipcMain.handle("save-proxy-and-restart", async () => { +ipcMain.handle("restart-app", async () => { app.relaunch(); app.exit(); return ""; diff --git a/src/components/ChatSetting.vue b/src/components/ChatSetting.vue index 30469f06cf..9cb88b8423 100644 --- a/src/components/ChatSetting.vue +++ b/src/components/ChatSetting.vue @@ -1,5 +1,6 @@ +@/utils/storage diff --git a/src/components/ProxySetting.vue b/src/components/ProxySetting.vue index 53dcb2dda2..0e56c8d47e 100644 --- a/src/components/ProxySetting.vue +++ b/src/components/ProxySetting.vue @@ -280,7 +280,7 @@ async function saveAndActive() { ); if (result) { await onlySave(); - await ipcRenderer.invoke("save-proxy-and-restart"); + await ipcRenderer.invoke("restart-app"); } } diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue index 3268dc05c2..e4c0baef0c 100644 --- a/src/components/SettingsModal.vue +++ b/src/components/SettingsModal.vue @@ -20,7 +20,6 @@ {{ $t("settings.general") }} {{ $t("proxy.name") }} - {{ $t("chat.name") }} +
-
- -
-