mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
use local actions
This commit is contained in:
parent
f6f0a2e2df
commit
5c4b711044
1 changed files with 8 additions and 8 deletions
|
|
@ -148,7 +148,7 @@ impl Page {
|
|||
self.navigation.set_request_text(&request);
|
||||
|
||||
// Reload page (without history record)
|
||||
self.action_page_reload.activate(None);
|
||||
self.reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ impl Page {
|
|||
self.navigation.set_request_text(&request);
|
||||
|
||||
// Reload page (without history record)
|
||||
self.action_page_reload.activate(None);
|
||||
self.reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -251,11 +251,11 @@ impl Page {
|
|||
// Make sure new request conversable to valid URI
|
||||
match Uri::parse(&request, UriFlags::NONE) {
|
||||
Ok(_) => {
|
||||
// Update
|
||||
// Update navigation entry
|
||||
self.navigation.set_request_text(&request);
|
||||
|
||||
// Reload page
|
||||
self.action_page_reload.activate(None);
|
||||
// Reload page (without history record)
|
||||
self.reload();
|
||||
}
|
||||
Err(_) => {
|
||||
// @TODO any action here?
|
||||
|
|
@ -268,11 +268,11 @@ impl Page {
|
|||
Uri::escape_string(&request, None, false)
|
||||
);
|
||||
|
||||
// Update
|
||||
// Update navigation entry
|
||||
self.navigation.set_request_text(&request);
|
||||
|
||||
// Reload page
|
||||
self.action_page_reload.activate(None);
|
||||
// Reload page (without history record)
|
||||
self.reload();
|
||||
}
|
||||
}
|
||||
}; // Uri::parse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue