Skip to content

Commit

Permalink
Fixed navigation issue in edge2.
Browse files Browse the repository at this point in the history
  • Loading branch information
bamidev committed Mar 14, 2024
1 parent 9ec468e commit 3917f5a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/browser_window/edge2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ impl BrowserWindowExt for BrowserWindowImpl {
move |_| Ok(()),
);

let mut created = AtomicBool::new(false);;
webview.add_navigation_completed(move |wv, e| {
let handle = BrowserWindowImpl { inner: bw_inner };
creation_callback(handle, callback_data);
if !created.swap(true, Ordering::Relaxed) {
let handle = BrowserWindowImpl { inner: bw_inner };
creation_callback(handle, callback_data);
}
Ok(())
});

Expand Down

0 comments on commit 3917f5a

Please sign in to comment.