mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-17 19:56:41 -04:00
screenreader: Always try to start/stop orca in set_enabled
This commit is contained in:
parent
f62aa583e1
commit
84371fcc4e
1 changed files with 13 additions and 15 deletions
|
@ -146,10 +146,7 @@ impl<'dbus> OrcaManager<'dbus> {
|
|||
}
|
||||
|
||||
pub async fn set_enabled(&mut self, enable: bool) -> Result<()> {
|
||||
if self.enabled == enable {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if enable != self.enabled {
|
||||
#[cfg(not(test))]
|
||||
{
|
||||
let a11ysettings = Settings::new(A11Y_SETTING);
|
||||
|
@ -163,6 +160,7 @@ impl<'dbus> OrcaManager<'dbus> {
|
|||
_ => return Err(e),
|
||||
}
|
||||
}
|
||||
}
|
||||
if enable {
|
||||
self.restart_orca().await?;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue