Skip to content

Commit

Permalink
Add IPC command to Disable MacOS Aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Aug 29, 2024
1 parent 873a275 commit c456b60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daemon/src/primary_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ pub async fn spawn_usb_handler(
change_found = true;
let _ = sender.send(Ok(()));
}
DaemonCommand::DisableMacOSAggregates(value) => {
settings.set_macos_handle_aggregates(value).await;
settings.save().await;
let _ = sender.send(Ok(()));
}
}
},

Expand Down
2 changes: 2 additions & 0 deletions ipc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ pub enum DaemonCommand {

SetSampleGainPct(String, u8),
ApplySampleChange,

DisableMacOSAggregates(bool),
}

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down

0 comments on commit c456b60

Please sign in to comment.