fix(lyric): 修复桌面歌词窗口首次打开无歌词问题

歌词窗口 Vue 加载完成后发送 lyric-ready 信号,主窗口收到后
发送完整歌词数据,替代不可靠的延迟猜测方案
This commit is contained in:
alger
2026-03-12 18:31:16 +08:00
parent 1c222971d5
commit 479db66eb0
6 changed files with 28 additions and 3 deletions
+1
View File
@@ -19,6 +19,7 @@ interface API {
sendSong: (data: any) => void;
unblockMusic: (id: number, data: any, enabledSources?: string[]) => Promise<any>;
onLyricWindowClosed: (callback: () => void) => void;
onLyricWindowReady: (callback: () => void) => void;
getAppUpdateState: () => Promise<AppUpdateState>;
checkAppUpdate: (manual?: boolean) => Promise<AppUpdateState>;
downloadAppUpdate: () => Promise<AppUpdateState>;