mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-03 01:55:27 +00:00
update page on history navigation without memory record
This commit is contained in:
parent
68764ab024
commit
45276dd304
1 changed files with 11 additions and 4 deletions
|
|
@ -132,19 +132,26 @@ impl Page {
|
||||||
|
|
||||||
pub fn navigation_base(&self) {
|
pub fn navigation_base(&self) {
|
||||||
if let Some(url) = self.navigation.base_url() {
|
if let Some(url) = self.navigation.base_url() {
|
||||||
|
// Update with history record
|
||||||
self.action_page_open.activate(Some(&url.to_variant()));
|
self.action_page_open.activate(Some(&url.to_variant()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn navigation_history_back(&self) {
|
pub fn navigation_history_back(&self) {
|
||||||
if let Some(url) = self.navigation.history_back(true) {
|
if let Some(request) = self.navigation.history_back(true) {
|
||||||
self.action_page_open.activate(Some(&url.to_variant()));
|
// Update without history record
|
||||||
|
self.navigation.set_request_text(
|
||||||
|
&request, true, // activate (page reload)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn navigation_history_forward(&self) {
|
pub fn navigation_history_forward(&self) {
|
||||||
if let Some(url) = self.navigation.history_forward(true) {
|
if let Some(request) = self.navigation.history_forward(true) {
|
||||||
self.action_page_open.activate(Some(&url.to_variant()));
|
// Update without history record
|
||||||
|
self.navigation.set_request_text(
|
||||||
|
&request, true, // activate (page reload)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue