diff --git a/src/main/events/_name.js b/src/main/events/_name.js index ebdf1937..4eb8650f 100644 --- a/src/main/events/_name.js +++ b/src/main/events/_name.js @@ -22,7 +22,6 @@ exports.winLyric = { name: 'winLyric', create: 'create', close: 'close', - inited: 'inited', } exports.hotKey = { diff --git a/src/main/events/winLyric.js b/src/main/events/winLyric.js index 88e496f7..66772945 100644 --- a/src/main/events/winLyric.js +++ b/src/main/events/winLyric.js @@ -10,10 +10,6 @@ class WinLyric extends EventEmitter { close() { this.emit(WIN_LYRIC_EVENT_NAME.close) } - - inited() { - this.emit(WIN_LYRIC_EVENT_NAME.inited) - } } module.exports = WinLyric diff --git a/src/main/modules/winLyric/event.js b/src/main/modules/winLyric/event.js index 49912d91..d9f19b7b 100644 --- a/src/main/modules/winLyric/event.js +++ b/src/main/modules/winLyric/event.js @@ -38,7 +38,6 @@ global.lx_event.common.on(COMMON_EVENT_NAME.config, name => { if (WIN_LYRIC_EVENT_NAME.name === name) return setLrcConfig(false) }) -// global.lx_event.winLyric.on(WIN_LYRIC_EVENT_NAME.inited, () => setLrcConfig(true)) global.lx_event.mainWindow.on(MAIN_WINDOW_EVENT_NAME.setLyricInfo, info => { if (!global.modules.lyricWindow) return diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 3bb38f4d..e417c65f 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -1,5 +1,5 @@