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

@ -2,6 +2,7 @@ mod driver;
mod feature;
use super::Page;
use adw::TabPage;
use driver::Driver;
use feature::Feature;
use gtk::{
@ -21,10 +22,10 @@ impl Client {
// Constructors
/// Create new `Self`
pub fn init(page: &Rc<Page>) -> Self {
pub fn init(page: &Rc<Page>, tab_page: &TabPage) -> Self {
Self {
cancellable: Cell::new(Cancellable::new()),
driver: Rc::new(Driver::build(page)),
driver: Rc::new(Driver::build(page, tab_page)),
}
}