Skip to content

Commit

Permalink
feat: add double-click listener
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Oct 9, 2024
1 parent 69db584 commit bd156ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ async function createTray() {
])
tray.setToolTip('Fideo')
tray.setContextMenu(contextMenu)

tray.addListener('double-click', function () {
win?.show()
showTaskbar()
})
}

function showNotification(title: string, body: string) {
Expand Down

0 comments on commit bd156ee

Please sign in to comment.