修复潜在的报错

pull/1066/head
lyswhut 2022-11-25 23:00:08 +08:00
parent bdeab55d3c
commit 5e9b3a16fa
1 changed files with 1 additions and 1 deletions

View File

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