Compare against ObjC NO to ensure correctness.

pull/11/head
Nolan Darilek 2 years ago
parent 00485d6cd8
commit bd8e2ee20a
  1. 2
      src/backends/appkit.rs

@ -198,7 +198,7 @@ impl Backend for AppKit {
fn is_speaking(&self) -> Result<bool, Error> {
let is_speaking: i8 = unsafe { msg_send![self.0, isSpeaking] };
Ok(is_speaking == YES as i8)
Ok(is_speaking != NO as i8)
}
}

Loading…
Cancel
Save