Skip to content

Commit

Permalink
enable history record
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 23, 2025
1 parent 5943ea6 commit 399519f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/browser/window/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ impl Tab {
pub fn page_home(&self, page_position: Option<i32>) {
if let Some(item) = self.item(page_position) {
if let Some(home) = item.page.navigation.request.home() {
let home = home.to_string();
item.page.navigation.request.widget.entry.set_text(&home);
item.client.handle(&home, false);
item.client.handle(&home, true);
}
}
}
Expand All @@ -279,7 +280,7 @@ impl Tab {
pub fn page_reload(&self, page_position: Option<i32>) {
if let Some(item) = self.item(page_position) {
item.client
.handle(&item.page.navigation.request.widget.entry.text(), false);
.handle(&item.page.navigation.request.widget.entry.text(), true);
}
}

Expand Down

0 comments on commit 399519f

Please sign in to comment.