]> spindle.queued.net Git - midori/commitdiff
Show at minimum 10% progress when loading
authorChristian Dywan <christian@twotoasts.de>
Sun, 20 Feb 2011 19:09:57 +0000 (20:09 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 20 Feb 2011 19:09:57 +0000 (20:09 +0100)
midori/midori-browser.c

index d75faa075954449f44cd78f0afbc884eae5ba544..4ab1a4bb812d1a0e657308c566731628eba92848 100644 (file)
@@ -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);
 }