diff options
| author | Jeff Carr <[email protected]> | 2025-03-04 04:06:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-04 04:06:36 -0600 |
| commit | 994449b1c2cae3d21b3395d67c0ec5ffbd37787b (patch) | |
| tree | 4eb8a2159f13f60c6525100423c50b7c7a603129 /init.go | |
| parent | 5ebb13a45424b16ed99a3df644b3042f846900b1 (diff) | |
lock for now for gocui
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -376,6 +376,7 @@ func refreshGocui() { // artificially pause clock while dragging. // this is a reminder to make this refresh code smarter // after the switch to protocol buffers + me.myTree.Lock() if me.mouse.mouseUp { // log.Info("refresh now on mouseUp") // todo: add logic here to see if the application has changed anything @@ -387,6 +388,7 @@ func refreshGocui() { lastRefresh = time.Now() } } + me.myTree.Unlock() } } } @@ -402,6 +404,7 @@ func newWindowTrigger() { // log.Log(NOW, "newWindowTrigger() got new window", tk.cuiName) // time.Sleep(200 * time.Millisecond) waitOK() + me.myTree.Lock() // time.Sleep(200 * time.Millisecond) redoWindows(me.FirstWindowW, me.FirstWindowH) me.firstWindowOk = true @@ -414,6 +417,7 @@ func newWindowTrigger() { me.textbox.tk.prepTextbox() } tk.makeWindowActive() + me.myTree.Unlock() } } } |
