Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17ab12d

Browse files
fix: fix build on macos, closes #580 (#581)
* Fix #580 * Add .changes file * Update src/webview/wkwebview/mod.rs * Update src/webview/wkwebview/mod.rs Co-authored-by: Amr Bashir <[email protected]>
1 parent e11ad09 commit 17ab12d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changes/macos_build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wry": patch
3+
---
4+
5+
Fixed build on macos.

src/webview/wkwebview/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ impl InnerWebView {
417417
ns_window,
418418
respondsToSelector: sel!(setTitlebarSeparatorStyle:)
419419
];
420-
if can_set_titlebar_style {
420+
if can_set_titlebar_style == YES {
421421
// `1` means `none`, see https://developer.apple.com/documentation/appkit/nstitlebarseparatorstyle/none
422422
let () = msg_send![ns_window, setTitlebarSeparatorStyle: 1];
423423
}
@@ -546,7 +546,7 @@ r#"Object.defineProperty(window, 'ipc', {
546546
self.webview,
547547
respondsToSelector: sel!(printOperationWithPrintInfo:)
548548
];
549-
if can_print {
549+
if can_print == YES {
550550
// Create a shared print info
551551
let print_info: id = msg_send![class!(NSPrintInfo), sharedPrintInfo];
552552
let print_info: id = msg_send![print_info, init];

0 commit comments

Comments
 (0)