1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-12 21:30:45 +03:00

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 2023-03-23 20:12:43 -07:00
parent 448a9fe78a
commit c38d160918
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

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}");