mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update is_loading update logic
This commit is contained in:
parent
2f22185d6a
commit
88457b3fa0
6 changed files with 41 additions and 90 deletions
|
|
@ -63,8 +63,6 @@ impl Item {
|
|||
(browser_action, window_action, &action),
|
||||
));
|
||||
|
||||
let client = Rc::new(Client::init(&page));
|
||||
|
||||
let widget = Rc::new(Widget::build(
|
||||
id.as_str(),
|
||||
tab_view,
|
||||
|
|
@ -74,6 +72,9 @@ impl Item {
|
|||
(is_pinned, is_selected, is_attention),
|
||||
));
|
||||
|
||||
// Update tab loading indicator
|
||||
let client = Rc::new(Client::init(&page, &widget.tab_page));
|
||||
|
||||
// Init events
|
||||
|
||||
if let Some(text) = request {
|
||||
|
|
@ -133,9 +134,6 @@ impl Item {
|
|||
pub fn update(&self) {
|
||||
// Update child components
|
||||
self.page.update();
|
||||
|
||||
// Update tab loading indicator
|
||||
self.widget.tab_page.set_loading(self.page.is_loading());
|
||||
}
|
||||
|
||||
pub fn clean(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue