update is_loading update logic

This commit is contained in:
yggverse 2025-01-21 19:39:44 +02:00
parent 2f22185d6a
commit 88457b3fa0
6 changed files with 41 additions and 90 deletions

View file

@ -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(