mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add comments
This commit is contained in:
parent
9f7a8882cc
commit
7978b0f60d
1 changed files with 4 additions and 4 deletions
|
|
@ -55,22 +55,22 @@ impl Tab {
|
|||
if let Some(page) = widget.page(Some(position)) {
|
||||
if let Some(id) = page.keyword() {
|
||||
if let Some(item) = index.borrow().get(&id) {
|
||||
item.page.update(); // update window actions for tab activated
|
||||
item.page.update(); // update window actions using page of tab activated
|
||||
}
|
||||
}
|
||||
}
|
||||
Some(position)
|
||||
Some(position) // activated tab position
|
||||
}
|
||||
// on menu close
|
||||
None => {
|
||||
if let Some(page) = widget.page(None) {
|
||||
if let Some(id) = page.keyword() {
|
||||
if let Some(item) = index.borrow().get(&id) {
|
||||
item.page.update(); // update window actions for current tab
|
||||
item.page.update(); // update window actions using page of current tab
|
||||
}
|
||||
}
|
||||
}
|
||||
None
|
||||
None // selected tab
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue