mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
draft history navigation actions
This commit is contained in:
parent
356972ae39
commit
28684b8ef9
6 changed files with 63 additions and 14 deletions
|
|
@ -95,7 +95,7 @@ impl Page {
|
|||
&request, true, // activate (page reload)
|
||||
);
|
||||
|
||||
navigation.add_history(request);
|
||||
navigation.history_add(request);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -126,6 +126,18 @@ impl Page {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn navigation_history_back(&self) {
|
||||
if let Some(url) = self.navigation.history_try_back() {
|
||||
self.action_page_open.activate(Some(&url.to_variant()));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn navigation_history_forward(&self) {
|
||||
if let Some(url) = self.navigation.history_try_forward() {
|
||||
self.action_page_open.activate(Some(&url.to_variant()));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn navigation_reload(&self) {
|
||||
// Init globals
|
||||
let request_text = self.navigation.request_text();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue