make update action by item id

This commit is contained in:
yggverse 2024-10-15 08:45:44 +03:00
parent c92a5406f5
commit 6c4137f2b6
7 changed files with 48 additions and 41 deletions

View file

@ -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(),
);
}
});