]> git.armaanb.net Git - chorizo.git/commitdiff
Hide progress bar once the webpage has finished loading
authorCamille Scholtz <camille@airmail.cc>
Wed, 26 Apr 2017 20:27:56 +0000 (22:27 +0200)
committerCamille Scholtz <camille@airmail.cc>
Wed, 26 Apr 2017 20:27:56 +0000 (22:27 +0200)
browser.c

index 02b20d2ccd5259e6b46a34a8a51c5757a8327319..2903f97a32c22c846c27626b1f0876ca6ceb355a 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -322,6 +322,7 @@ changed_load_progress(GObject *obj, GParamSpec *pspec, gpointer data)
     gdouble p;
 
     p = webkit_web_view_get_estimated_load_progress(WEBKIT_WEB_VIEW(c->web_view));
+    if (p == 1) p = 0;
     gtk_entry_set_progress_fraction(GTK_ENTRY(c->location), p);
 }