screenreader: Enable or disable orca unit as needed

This commit is contained in:
Vicki Pfau 2025-05-30 16:05:47 -07:00
parent 04dc78fdd1
commit e21153671b
2 changed files with 37 additions and 19 deletions

View file

@ -115,7 +115,6 @@ impl<'dbus> SystemdUnit<'dbus> {
Ok(())
}
#[allow(unused)]
pub async fn enable(&self) -> Result<bool> {
let manager = SystemdManagerProxy::new(&self.connection).await?;
let (_, res) = manager
@ -124,7 +123,6 @@ impl<'dbus> SystemdUnit<'dbus> {
Ok(!res.is_empty())
}
#[allow(unused)]
pub async fn disable(&self) -> Result<bool> {
let manager = SystemdManagerProxy::new(&self.connection).await?;
let res = manager