新增首次运行时自动根据当前系统使用的语言设置软件显示的语言
This commit is contained in:
@@ -16,7 +16,10 @@ const setLrcConfig = isForceSet => {
|
||||
}
|
||||
}
|
||||
if (global.modules.lyricWindow) {
|
||||
mainSend(global.modules.lyricWindow, ipcWinLyricNames.set_lyric_config, desktopLyric)
|
||||
mainSend(global.modules.lyricWindow, ipcWinLyricNames.set_lyric_config, {
|
||||
config: desktopLyric,
|
||||
languageId: global.appSetting.langId,
|
||||
})
|
||||
if (isForceSet || isLock != desktopLyric.isLock) {
|
||||
isLock = desktopLyric.isLock
|
||||
if (desktopLyric.isLock) {
|
||||
|
||||
@@ -23,7 +23,7 @@ mainOn(ipcWinLyricNames.set_lyric_config, (event, config) => {
|
||||
})
|
||||
|
||||
mainHandle(ipcWinLyricNames.get_lyric_config, async() => {
|
||||
return global.appSetting.desktopLyric
|
||||
return { config: global.appSetting.desktopLyric, languageId: global.appSetting.langId }
|
||||
})
|
||||
|
||||
let bounds
|
||||
|
||||
Reference in New Issue
Block a user