ref: 563ae61623cfac531fc5306f08eb82c12cb120de
parent: fb1e925b765b0f39437eec9df8938ebf8670056a
author: Philip Silva <philip.silva@protonmail.com>
date: Tue Feb 16 18:46:11 EST 2021
Fewer flickering status messages
--- a/browser/browser.go
+++ b/browser/browser.go
@@ -1422,7 +1422,11 @@
if dui == nil || dui.Top.UI == nil {return
}
- b.StatusBar.Text = msg
+ if msg == "" {+ b.StatusBar.Text = ""
+ } else {+ b.StatusBar.Text += msg + "\n"
+ }
if emptyBody { b.Website.UI = &duit.Label{}}
@@ -1435,9 +1439,6 @@
msg := fmt.Sprintf("Get %v", uri.String())log.Printf(msg)
b.statusBarMsg(msg, true)
- defer func() {- b.statusBarMsg("", true)- }()
req, err := http.NewRequest("GET", uri.String(), nil) if err != nil {return
--- a/browser/website.go
+++ b/browser/website.go
@@ -24,6 +24,9 @@
}
func (w *Website) layout(f opossum.Fetcher, layouting int) {+ defer func() {+ browser.statusBarMsg("", false)+ }()
pass := func(htm string, csss ...string) (*html.Node, map[*html.Node]style.Map) { if debugPrintHtml {--
⑨