File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ fn main() -> wry::Result<()> {
63
63
text,
64
64
FindInPageOption {
65
65
case_sensitive : true ,
66
+ max_match_count : 100 ,
66
67
..FindInPageOption :: default ( )
67
68
} ,
68
69
|found| println ! ( "Is found: {}" , found) ,
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ impl InnerWebView {
297
297
} ;
298
298
299
299
let find_controller = {
300
- let mut builder = FindControllerBuilder :: new ( ) ;
300
+ let builder = FindControllerBuilder :: new ( ) ;
301
301
let controller = builder. web_view ( & * webview) . build ( ) ;
302
302
Rc :: new ( controller)
303
303
} ;
@@ -424,10 +424,10 @@ impl InnerWebView {
424
424
425
425
self
426
426
. find_controller
427
- . connect_failed_to_find_text ( move |_| ( * f ) ( false ) ) ;
427
+ . connect_failed_to_find_text ( move |_| ( * handler ) ( false ) ) ;
428
428
self
429
429
. find_controller
430
- . connect_found_text ( move |_, _| ( * f ) ( true ) ) ;
430
+ . connect_found_text ( move |_, _| ( * found ) ( true ) ) ;
431
431
}
432
432
}
433
433
You can’t perform that action at this time.
0 commit comments