begin local actions implementation

This commit is contained in:
yggverse 2024-11-10 07:09:55 +02:00
parent 9398a835cd
commit 9ff32a3419
19 changed files with 402 additions and 226 deletions

View file

@ -274,8 +274,13 @@ impl Tab {
}
}
pub fn update(&self, id: &str) {
match self.index.borrow().get(id) {
pub fn update(&self, item_id: Option<GString>) {
let key = match item_id {
Some(value) => value,
None => GString::new(), // @TODO
};
match self.index.borrow().get(&key) {
Some(item) => {
// Update item components
item.update();
@ -298,7 +303,7 @@ impl Tab {
}
}
}
}
} // @TODO need optimization
pub fn clean(
&self,