mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-23 17:44:13 +00:00
add comments
This commit is contained in:
parent
9f7a8882cc
commit
7978b0f60d
@ -55,22 +55,22 @@ impl Tab {
|
|||||||
if let Some(page) = widget.page(Some(position)) {
|
if let Some(page) = widget.page(Some(position)) {
|
||||||
if let Some(id) = page.keyword() {
|
if let Some(id) = page.keyword() {
|
||||||
if let Some(item) = index.borrow().get(&id) {
|
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
|
// on menu close
|
||||||
None => {
|
None => {
|
||||||
if let Some(page) = widget.page(None) {
|
if let Some(page) = widget.page(None) {
|
||||||
if let Some(id) = page.keyword() {
|
if let Some(id) = page.keyword() {
|
||||||
if let Some(item) = index.borrow().get(&id) {
|
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…
x
Reference in New Issue
Block a user