mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
begin local actions implementation
This commit is contained in:
parent
9398a835cd
commit
9ff32a3419
19 changed files with 402 additions and 226 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue