1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-12-02 13:29:37 +00:00

Compare against ObjC NO to ensure correctness.

This commit is contained in:
Nolan Darilek 2021-03-15 13:02:32 -05:00
parent 00485d6cd8
commit bd8e2ee20a

View File

@ -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)
}
}