From 5e9b3a16fa055cb713965b869b49beeafa10b9d2 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 25 Nov 2022 23:00:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BD=9C=E5=9C=A8=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/app.ts b/src/main/app.ts index 380d77e7..99d28b6e 100644 --- a/src/main/app.ts +++ b/src/main/app.ts @@ -170,7 +170,7 @@ export const listenerAppEvent = (startApp: () => void) => { nativeTheme.addListener('updated', (event: any) => { const themeInfo: Electron.NativeTheme = event.sender - global.lx.event_app.system_theme_change(themeInfo.shouldUseDarkColors) + global.lx?.event_app.system_theme_change(themeInfo.shouldUseDarkColors) }) }