From c1f592bb75bb7f0979b70e94b1ff7ae8a45711fc Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 20 Feb 2011 20:09:57 +0100 Subject: [PATCH] Show at minimum 10% progress when loading --- midori/midori-browser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index d75faa07..4ab1a4bb 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -433,6 +433,9 @@ _midori_browser_update_progress (MidoriBrowser* browser, /* When we are finished, we don't want to *see* progress anymore */ if (midori_view_get_load_status (view) == MIDORI_LOAD_FINISHED) progress = 0.0; + /* When loading we want to see at minimum 10% progress */ + else + progress = CLAMP (progress, 0.1, 1.0); midori_location_action_set_progress (action, progress); } -- 2.39.5