Skip to content

Commit

Permalink
feat: add scan option to tray menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 20, 2021
1 parent 5c73715 commit cbbd6dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ app.whenReady().then(function () {
click: changeHost,
})
)
menu.append(
new MenuItem({
label: 'Scan devices',
click: trayScanDevices,
})
)
menu.append(
new MenuItem({
label: 'About',
Expand Down Expand Up @@ -107,6 +113,11 @@ function trayQuit() {
})
}

function trayScanDevices() {
console.log('do scan')
devices.scanDevices()
}

function trayAbout() {
console.log('about click')
openAboutWindow({
Expand Down

0 comments on commit cbbd6dd

Please sign in to comment.