We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac053e9 commit ff05225Copy full SHA for ff05225
2 files changed
src/main/events/Tray.js
@@ -0,0 +1,14 @@
1
+const { EventEmitter } = require('events')
2
+const { tray: TRAY_EVENT_NAME } = require('./_name')
3
+
4
+class Tray extends EventEmitter {
5
+ create() {
6
+ this.emit(TRAY_EVENT_NAME.create)
7
+ }
8
9
+ destroy() {
10
+ this.emit(TRAY_EVENT_NAME.destroy)
11
12
+}
13
14
+module.exports = Tray
src/main/events/WinLyric.js
@@ -0,0 +1,15 @@
+const { winLyric: WIN_LYRIC_EVENT_NAME } = require('./_name')
+// const { updateSetting } = require('../utils')
+class WinLyric extends EventEmitter {
+ this.emit(WIN_LYRIC_EVENT_NAME.create)
+ close() {
+ this.emit(WIN_LYRIC_EVENT_NAME.close)
15
+module.exports = WinLyric
0 commit comments