feat: add tray icon
This commit is contained in:
parent
802e1780b1
commit
0666d4677e
2 changed files with 79 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ var dev = process.argv[0].includes('node_modules'),
|
|||
docsServer,
|
||||
app = null,
|
||||
launcher = null,
|
||||
tray = null,
|
||||
clientWindows = [],
|
||||
serverProcess = null,
|
||||
node = false
|
||||
|
|
@ -221,6 +222,15 @@ function startLauncher() {
|
|||
process.stderr.write = stderrWrite
|
||||
if (process.log) process.log = processLog
|
||||
})
|
||||
|
||||
tray = require('./tray')({
|
||||
window: launcher,
|
||||
openClient: openClient,
|
||||
app: app,
|
||||
startServer: startServerProcess,
|
||||
stopServer: stopServerProcess
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
let processLog = process.log,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue