mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-24 01:30:16 +08:00
Added: docs page
This commit is contained in:
@@ -25,15 +25,12 @@ const settingWinURL = process.env.NODE_ENV === 'development'
|
||||
function createTray () {
|
||||
tray = new Tray(`${__static}/menubar.png`)
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
role: 'quit',
|
||||
label: 'Quit'
|
||||
},
|
||||
{
|
||||
label: '打开详细窗口',
|
||||
click () {
|
||||
if (settingWindow === null) {
|
||||
createSettingWindow()
|
||||
settingWindow.show()
|
||||
} else {
|
||||
settingWindow.show()
|
||||
settingWindow.focus()
|
||||
@@ -63,6 +60,10 @@ function createTray () {
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
role: 'quit',
|
||||
label: '退出'
|
||||
}
|
||||
])
|
||||
tray.on('right-click', () => {
|
||||
@@ -92,7 +93,7 @@ function createTray () {
|
||||
})
|
||||
|
||||
tray.on('drag-end', () => {
|
||||
tray.setImage(`${__static}/menubarDefaultTemplate.png`)
|
||||
tray.setImage(`${__static}/menubar.png`)
|
||||
})
|
||||
|
||||
tray.on('drop-files', async (event, files) => {
|
||||
|
||||
Reference in New Issue
Block a user