From 2f22185d6afeaf49df4e64360267b3d0b6aff251 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 21 Jan 2025 19:07:23 +0200 Subject: [PATCH] fix is loading condition --- src/app/browser/window/tab/item/page.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 1be9e66e..d9ab77e1 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -197,8 +197,7 @@ impl Page { /// Get `Self` loading status pub fn is_loading(&self) -> bool { - let progress_fraction = self.navigation.request.widget.entry.progress_fraction(); - progress_fraction > 0.0 && progress_fraction < 1.0 + self.navigation.request.widget.entry.progress_fraction() > 0.0 } }