mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
enshort construction
This commit is contained in:
parent
12ce56be6b
commit
aa06170e28
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user