diff --git a/src/main/events/Tray.js b/src/main/events/Tray.js new file mode 100644 index 00000000..39867f43 --- /dev/null +++ b/src/main/events/Tray.js @@ -0,0 +1,14 @@ +const { EventEmitter } = require('events') +const { tray: TRAY_EVENT_NAME } = require('./_name') + +class Tray extends EventEmitter { + create() { + this.emit(TRAY_EVENT_NAME.create) + } + + destroy() { + this.emit(TRAY_EVENT_NAME.destroy) + } +} + +module.exports = Tray diff --git a/src/main/events/WinLyric.js b/src/main/events/WinLyric.js new file mode 100644 index 00000000..66772945 --- /dev/null +++ b/src/main/events/WinLyric.js @@ -0,0 +1,15 @@ +const { EventEmitter } = require('events') +const { winLyric: WIN_LYRIC_EVENT_NAME } = require('./_name') +// const { updateSetting } = require('../utils') + +class WinLyric extends EventEmitter { + create() { + this.emit(WIN_LYRIC_EVENT_NAME.create) + } + + close() { + this.emit(WIN_LYRIC_EVENT_NAME.close) + } +} + +module.exports = WinLyric