diff options
| author | Jeff Carr <[email protected]> | 2024-02-15 22:50:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-15 22:50:50 -0600 |
| commit | 2bc2096e841f3b262563126feb8a7a4c2b66f090 (patch) | |
| tree | a940a0200555f1a75096cdc1895246ed46ffb159 /modifyBox.go | |
| parent | e6eb92845ace066aa36c8730d28c3e53fe6bdca8 (diff) | |
xterm fixes
also a i18n syntax idea
show all tags in the main window
Diffstat (limited to 'modifyBox.go')
| -rw-r--r-- | modifyBox.go | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/modifyBox.go b/modifyBox.go index 14b5926..2a294b0 100644 --- a/modifyBox.go +++ b/modifyBox.go @@ -1,12 +1,13 @@ package repostatus import ( + "go.wit.com/gui" "go.wit.com/lib/gadgets" "go.wit.com/log" ) -func (rs *RepoStatus) drawGitCommands() { - rs.gitCommandsGroup = rs.window.Box().NewGroup("modify") +func (rs *RepoStatus) drawGitCommands(box *gui.Node) { + rs.gitCommandsGroup = box.NewGroup("modify") newgrid := rs.gitCommandsGroup.NewGrid("gridnuts", 0, 0) newgrid.NewButton("update", func() { @@ -25,19 +26,6 @@ func (rs *RepoStatus) drawGitCommands() { } }) - newgrid.NewButton("git tags window", func() { - if rs.TagsW == nil { - log.Warn("error: found rs.TagsW == nil") - rs.TagsW = rs.TagWindow() - return - } - if rs.TagsW.Hidden() { - rs.TagsW.Show() - } else { - rs.TagsW.Show() - } - }) - newgrid.NewButton("show .git/config", func() { if rs.gitConfig == nil { log.Log(WARN, "Nonexistant or damaged .git/config", rs.String()) |
