@@ -22,11 +22,11 @@ export const useLyricSettings = (): SettingConfig => {
2222
2323 const getDesktopLyricConfig = async ( ) => {
2424 if ( ! isElectron ) return ;
25- const config = await window . electron . ipcRenderer . invoke ( "request- desktop-lyric-option" ) ;
25+ const config = await window . electron . ipcRenderer . invoke ( "desktop-lyric:get -option" ) ;
2626 if ( config ) Object . assign ( desktopLyricConfig , config ) ;
2727
2828 // 监听更新
29- window . electron . ipcRenderer . on ( "update- desktop-lyric-option" , ( _ , config ) => {
29+ window . electron . ipcRenderer . on ( "desktop-lyric:update -option" , ( _ , config ) => {
3030 if ( config && ! isEqual ( desktopLyricConfig , config ) ) {
3131 Object . assign ( desktopLyricConfig , config ) ;
3232 }
@@ -37,7 +37,7 @@ export const useLyricSettings = (): SettingConfig => {
3737 try {
3838 if ( ! isElectron ) return ;
3939 window . electron . ipcRenderer . send (
40- "update- desktop-lyric-option" ,
40+ "desktop-lyric:set -option" ,
4141 cloneDeep ( desktopLyricConfig ) ,
4242 true ,
4343 ) ;
@@ -59,7 +59,7 @@ export const useLyricSettings = (): SettingConfig => {
5959 negativeText : "取消" ,
6060 onPositiveClick : ( ) => {
6161 window . electron . ipcRenderer . send (
62- "update- desktop-lyric-option" ,
62+ "desktop-lyric:set -option" ,
6363 defaultDesktopLyricConfig ,
6464 true ,
6565 ) ;
0 commit comments