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
|
|
@ -30,6 +30,9 @@ pub enum IpcEvent {
|
|||
|
||||
// Pong response
|
||||
Pong,
|
||||
|
||||
// request GUI to reveal/focus window
|
||||
RevealWindow,
|
||||
}
|
||||
|
||||
// Actions sent from GUI to jarvis-app
|
||||
|
|
@ -47,4 +50,7 @@ pub enum IpcAction {
|
|||
|
||||
// Mute/unmute listening
|
||||
SetMuted { muted: bool },
|
||||
|
||||
// Execute text command
|
||||
TextCommand { text: String },
|
||||
}
|
||||
|
|
@ -187,4 +187,12 @@ async fn handle_client(
|
|||
}
|
||||
|
||||
info!("IPC: Client disconnected: {}", peer_addr);
|
||||
}
|
||||
|
||||
pub fn has_clients() -> bool {
|
||||
if let Some(tx) = BROADCAST_TX.get() {
|
||||
tx.receiver_count() > 0
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue