lx-music-desktop/src/main/rendererEvents/setLyricInfo.js
2021-12-03 22:11:11 +08:00

11 lines
319 B
JavaScript

const { mainOn, mainSend, NAMES: { mainWindow: ipcMainWindowNames } } = require('@common/ipc')
mainOn(ipcMainWindowNames.set_lyric_info, (event, info) => {
if (info.info == null) {
global.lx_event.mainWindow.setLyricInfo(info)
return
}
mainSend(global.modules[info.info.modal], info.info.name, info)
})