From 0f5a9901055b5d8e8ed1fa8d79a7dcebb7825fdf Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 30 Sep 2024 01:25:14 +0300 Subject: [PATCH] update status fraction --- src/browser/main/tab/page.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/browser/main/tab/page.rs b/src/browser/main/tab/page.rs index 08c9335e..782a035b 100644 --- a/src/browser/main/tab/page.rs +++ b/src/browser/main/tab/page.rs @@ -399,10 +399,11 @@ impl Page { pub fn update(&self) { // Interpret status to progress fraction let progress_fraction = match self.meta.borrow().status { - Some(Status::Prepare) => Some(0.25), - Some(Status::Connect) => Some(0.50), - Some(Status::Request) => Some(0.75), - Some(Status::Response) => Some(1.0), + Some(Status::Prepare | Status::Reload) => Some(0.0), + Some(Status::Connect) => Some(0.25), + Some(Status::Request) => Some(0.50), + Some(Status::Response) => Some(0.75), + Some(Status::Failure | Status::Redirect | Status::Success) => Some(1.0), _ => None, };