mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
make update action by item id
This commit is contained in:
parent
c92a5406f5
commit
6c4137f2b6
7 changed files with 48 additions and 41 deletions
|
|
@ -107,8 +107,13 @@ impl Browser {
|
|||
|
||||
action_update.connect_activate({
|
||||
let window = window.clone();
|
||||
move |_, _| {
|
||||
window.update();
|
||||
move |_, id| {
|
||||
window.update(
|
||||
id.expect("Page ID required for update action")
|
||||
.get::<String>()
|
||||
.expect("Parameter does not match `String`")
|
||||
.as_str(),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue