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

@ -15,10 +15,7 @@ use widget::Widget;
use super::{Action as TabAction, BrowserAction, Profile, WindowAction};
use gtk::{
glib::GString,
prelude::{EditableExt, EntryExt},
};
use gtk::{glib::GString, prelude::EditableExt};
use sqlite::Transaction;
use std::{cell::RefCell, rc::Rc};
@ -192,13 +189,6 @@ impl Page {
Ok(())
}
// Getters
/// Get `Self` loading status
pub fn is_loading(&self) -> bool {
self.navigation.request.widget.entry.progress_fraction() > 0.0
}
}
// Tools