Skip to content

Commit

Permalink
fix: fix build on macos, closes #580 (#581)
Browse files Browse the repository at this point in the history
* Fix #580

* Add .changes file

* Update src/webview/wkwebview/mod.rs

* Update src/webview/wkwebview/mod.rs

Co-authored-by: Amr Bashir <[email protected]>
  • Loading branch information
FrankenApps and amrbashir authored May 10, 2022
1 parent e11ad09 commit 17ab12d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/macos_build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

Fixed build on macos.
4 changes: 2 additions & 2 deletions src/webview/wkwebview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl InnerWebView {
ns_window,
respondsToSelector: sel!(setTitlebarSeparatorStyle:)
];
if can_set_titlebar_style {
if can_set_titlebar_style == YES {
// `1` means `none`, see https://developer.apple.com/documentation/appkit/nstitlebarseparatorstyle/none
let () = msg_send![ns_window, setTitlebarSeparatorStyle: 1];
}
Expand Down Expand Up @@ -546,7 +546,7 @@ r#"Object.defineProperty(window, 'ipc', {
self.webview,
respondsToSelector: sel!(printOperationWithPrintInfo:)
];
if can_print {
if can_print == YES {
// Create a shared print info
let print_info: id = msg_send![class!(NSPrintInfo), sharedPrintInfo];
let print_info: id = msg_send![print_info, init];
Expand Down

0 comments on commit 17ab12d

Please sign in to comment.