summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-04 02:14:54 -0600
committerJeff Carr <[email protected]>2024-11-04 02:14:54 -0600
commit98926bf2f80a25e51429d74182254da1103bdbc7 (patch)
tree15f7dba8217d883411e212b0ee8db4f490b9a244 /structs.go
parent8c415947df3ed66ec4207266b457136e30263568 (diff)
ignore new repos until init()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 6af9283..0758258 100644
--- a/structs.go
+++ b/structs.go
@@ -1,6 +1,8 @@
package repolist
import (
+ "sync"
+
"go.wit.com/gui"
"go.wit.com/lib/gui/repostatus"
)
@@ -17,6 +19,8 @@ func (b *RepoList) Enable() {
// this app's variables
type RepoList struct {
+ sync.RWMutex
+
onlyMe bool
goSrcPwd string
allrepos map[string]*RepoRow