macos: be precised about matching cocoa BOOL

Weirdly, this worked for me on my mac, but not in CI

refs: #3340
This commit is contained in:
Wez Furlong committed 2023-03-23 20:12:43 -07:00
1 parent 448a9fe78a
commit c38d160918
1 file changed
+1 -1
+1 -1
View File
@@ -142,7 +142,7 @@ extern "C" fn application_open_file(
file_name: *mut Object,
) {
let launched: BOOL = unsafe { *this.get_ivar("launched") };
if launched {
if launched == YES {
let file_name = unsafe { nsstring_to_str(file_name) }.to_string();
if let Some(conn) = Connection::get() {
log::debug!("application_open_file {file_name}");