summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.go b/init.go
index 8b2a7be..4810658 100644
--- a/init.go
+++ b/init.go
@@ -247,9 +247,13 @@ func refreshGocui() {
continue
}
if time.Since(lastRefresh) > 1000*time.Millisecond {
+ // artificially pause clock while dragging.
+ // this is a reminder to make this refresh code smarter
+ // after the switch to protocol buffers
if me.mouse.mouseUp {
// log.Info("refresh now on mouseUp")
// todo: add logic here to see if the application has changed anything
+ // me.baseGui.UpdateAsync(testRefresh) // probably don't need this
me.baseGui.Update(testRefresh)
if me.clock.tk != nil && !me.showHelp {
// also double check the gocui view exists