This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0
master
宇天 2020-12-13 21:28:00 +08:00
parent 82cc79a46f
commit 539a942906
3 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "top.yutent.sonist", "name": "top.yutent.sonist",
"version": "2.0.0-alpha-2", "version": "2.0.0-alpha-3",
"description": "Music Player", "description": "Music Player",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -42,7 +42,10 @@ exports.ctrlTrayBtn = function(win) {
next.on('click', _ => { next.on('click', _ => {
win.webContents.send('app', { type: 'tray-next', data: { isPlaying } }) 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 } return { prev, play, next }
} }
@ -65,6 +68,7 @@ exports.createAppTray = function(win) {
tray.popUpContextMenu(menuList) tray.popUpContextMenu(menuList)
}) })
win.__tray__ = tray
return tray return tray
} }
@ -72,5 +76,6 @@ exports.createLrcTray = function(win) {
var tray = create() var tray = create()
tray.setTitle('这是顶栏歌词, blablablabla...') tray.setTitle('这是顶栏歌词, blablablabla...')
win.__lrc__ = tray
return tray return tray
} }