Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Tray menu text does not change with the appearance language Fix https://github.com/siyuan-note/siyuan/issues/7935

Liang Ding8491ae698d2d
diff --git a/app/electron/main.js b/app/electron/main.js
index f97a934bb6..e2e5944e68 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -721,6 +721,10 @@ app.whenReady().then(() => {
ipcMain.on("siyuan-init", async (event, data) => {
const exitWS = workspaces.find(item => {
if (data.id === item.id && item.workspaceDir) {
+ if (item.tray && "win32" === process.platform || "linux" === process.platform) {
+ // Tray menu text does not change with the appearance language https://github.com/siyuan-note/siyuan/issues/7935
+ resetTrayMenu(item.tray, data.languages, item.browserWindow);
+ }
return true;
}
});