From 39fc246d0788db092bcc9db40724e5646c54bb40 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 23 Jan 2025 13:56:35 +0200 Subject: [PATCH] remove actions dependency --- src/app/browser/window/tab.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 324914a9..6d8569e4 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -252,25 +252,25 @@ impl Tab { if let Some(item) = self.item(page_position) { if let Some(home) = item.page.navigation.request.home() { item.page.navigation.request.widget.entry.set_text(&home); - self.window_action.reload.activate(); + item.client.handle(&home, false); } } } pub fn page_history_back(&self, page_position: Option) { if let Some(item) = self.item(page_position) { - if let Some(text) = item.page.navigation.history.back(true) { - item.page.navigation.request.widget.entry.set_text(&text); - self.window_action.reload.activate(); + if let Some(back) = item.page.navigation.history.back(true) { + item.page.navigation.request.widget.entry.set_text(&back); + item.client.handle(&back, false); } } } pub fn page_history_forward(&self, page_position: Option) { if let Some(item) = self.item(page_position) { - if let Some(text) = item.page.navigation.history.forward(true) { - item.page.navigation.request.widget.entry.set_text(&text); - self.window_action.reload.activate(); + if let Some(forward) = item.page.navigation.history.forward(true) { + item.page.navigation.request.widget.entry.set_text(&forward); + item.client.handle(&forward, false); } } }