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

This commit is contained in:
Liang Ding 2023-04-09 10:36:18 +08:00
parent cb53e2eb70
commit 8491ae698d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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;
}
});