update
parent
82cc79a46f
commit
539a942906
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "top.yutent.sonist",
|
||||
"version": "2.0.0-alpha-2",
|
||||
"version": "2.0.0-alpha-3",
|
||||
"description": "Music Player",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -42,7 +42,10 @@ exports.ctrlTrayBtn = function(win) {
|
|||
next.on('click', _ => {
|
||||
win.webContents.send('app', { type: 'tray-next', data: { isPlaying } })
|
||||
})
|
||||
console.log('ready', prev, play, next)
|
||||
|
||||
win.__prev__ = prev
|
||||
win.__play__ = play
|
||||
win.__next__ = next
|
||||
return { prev, play, next }
|
||||
}
|
||||
|
||||
|
@ -65,6 +68,7 @@ exports.createAppTray = function(win) {
|
|||
tray.popUpContextMenu(menuList)
|
||||
})
|
||||
|
||||
win.__tray__ = tray
|
||||
return tray
|
||||
}
|
||||
|
||||
|
@ -72,5 +76,6 @@ exports.createLrcTray = function(win) {
|
|||
var tray = create()
|
||||
tray.setTitle('这是顶栏歌词, blablablabla...')
|
||||
|
||||
win.__lrc__ = tray
|
||||
return tray
|
||||
}
|
||||
|
|
Reference in New Issue