use local actions

This commit is contained in:
yggverse 2024-11-05 08:31:44 +02:00
parent f6f0a2e2df
commit 5c4b711044

View File

@ -148,7 +148,7 @@ impl Page {
self.navigation.set_request_text(&request); self.navigation.set_request_text(&request);
// Reload page (without history record) // 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); self.navigation.set_request_text(&request);
// Reload page (without history record) // 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 // Make sure new request conversable to valid URI
match Uri::parse(&request, UriFlags::NONE) { match Uri::parse(&request, UriFlags::NONE) {
Ok(_) => { Ok(_) => {
// Update // Update navigation entry
self.navigation.set_request_text(&request); self.navigation.set_request_text(&request);
// Reload page // Reload page (without history record)
self.action_page_reload.activate(None); self.reload();
} }
Err(_) => { Err(_) => {
// @TODO any action here? // @TODO any action here?
@ -268,11 +268,11 @@ impl Page {
Uri::escape_string(&request, None, false) Uri::escape_string(&request, None, false)
); );
// Update // Update navigation entry
self.navigation.set_request_text(&request); self.navigation.set_request_text(&request);
// Reload page // Reload page (without history record)
self.action_page_reload.activate(None); self.reload();
} }
} }
}; // Uri::parse }; // Uri::parse