summaryrefslogtreecommitdiff
path: root/windowReposFix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-05-31 12:49:19 -0500
committerJeff Carr <[email protected]>2025-05-31 12:49:19 -0500
commit2f8da5a8be17c161c107cff96adabe178c977500 (patch)
tree3fdbad8e458c61db11588a2dd41c0b71fc0a148e /windowReposFix.go
parent912c5a9bb9188a44cd7af7c96d003bb05a1e0920 (diff)
move buttons around
Diffstat (limited to 'windowReposFix.go')
-rw-r--r--windowReposFix.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/windowReposFix.go b/windowReposFix.go
index 9a698fa..e6d2795 100644
--- a/windowReposFix.go
+++ b/windowReposFix.go
@@ -8,10 +8,8 @@ package main
import (
"fmt"
"os"
- "sync"
"time"
- "go.wit.com/gui"
"go.wit.com/lib/debugger"
"go.wit.com/lib/gadgets"
"go.wit.com/lib/protobuf/gitpb"
@@ -48,30 +46,6 @@ func makeReposWin() *stdReposTableWin {
})
})
- var writeWin *gadgets.GenericWindow
- me.repoWritableB = grid.NewButton("writable", func() {
- // if the window exists, just toggle it open or closed
- if writeWin != nil {
- writeWin.Toggle()
- return
- }
-
- // make the window for the first time
- found := new(gitpb.Repos)
- for repo := range me.forge.Repos.IterByFullPath() {
- if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
- continue
- }
-
- found.AppendByGoPath(repo)
-
- }
- writeWin, _ = makeWritableWindow(found)
- writeWin.Win.Custom = func() {
- log.Info("closing window. could do somethine here")
- }
- })
-
me.repoAllB = grid.NewButton("All", func() {
me.found = new(gitpb.Repos)
all := me.forge.Repos.SortByFullPath()