Tray options implementation + Voice system rewrite + build fixes
This commit is contained in:
parent
412acb7e2d
commit
47b7e7a65d
117 changed files with 1300 additions and 2334 deletions
|
|
@ -21,13 +21,17 @@
|
|||
|
||||
let processRunning = false
|
||||
let launching = false
|
||||
let wasRunning = false // track previous state
|
||||
|
||||
isJarvisRunning.subscribe((value) => {
|
||||
processRunning = value
|
||||
if (value) {
|
||||
enableIpc()
|
||||
} else {
|
||||
wasRunning = true
|
||||
} else if (wasRunning) {
|
||||
// only disable if it was running before
|
||||
disableIpc()
|
||||
wasRunning = false
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue