enshort construction

This commit is contained in:
yggverse 2024-11-05 09:46:38 +02:00
parent 12ce56be6b
commit aa06170e28

View File

@ -112,15 +112,14 @@ impl Page {
action_page_open.connect_activate({ action_page_open.connect_activate({
let this = this.clone(); let this = this.clone();
move |_, parameter| { move |_, request| {
// Get request value from action parameter // Set request value from action parameter
let request = parameter this.navigation.set_request_text(
.expect("Parameter required for this action") &request
.get::<String>() .expect("Parameter required for this action")
.expect("Parameter does not match `String`"); .get::<String>()
.expect("Parameter does not match `String`"),
// Update navigation entry );
this.navigation.set_request_text(&request);
// Reload page // Reload page
this.load(true); this.load(true);