Skip to content

Commit b2eece2

Browse files
committed
feat: Made refresh button work
1 parent 1a46593 commit b2eece2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • harbor/engine/src/render

harbor/engine/src/render/mod.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,14 @@ impl ApplicationHandler<AppEvent> for App {
285285
}
286286
}
287287
1 => {
288-
println!("Refresh button pressed");
288+
tab_data.document = None;
289+
tab_data.layout = None;
290+
tab_data.scroll_x = 0.0;
291+
tab_data.scroll_y = 0.0;
292+
293+
if let Some(callbacks) = &self.callbacks {
294+
(callbacks.open_tab)(tab_data);
295+
}
289296
}
290297
2 => {
291298
let next_url = tab_data.next_urls.pop();

0 commit comments

Comments
 (0)