diff options
| author | Jeff Carr <[email protected]> | 2025-05-31 11:35:49 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-05-31 11:35:49 -0500 |
| commit | 912c5a9bb9188a44cd7af7c96d003bb05a1e0920 (patch) | |
| tree | a0517cc24c17a3593234fdf2486eb1bbf3758cee /windowReposFix.go | |
| parent | 715b63b1c89c3671fa0c30293e57058a9441198e (diff) | |
code rearrange
Diffstat (limited to 'windowReposFix.go')
| -rw-r--r-- | windowReposFix.go | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/windowReposFix.go b/windowReposFix.go index f643164..9a698fa 100644 --- a/windowReposFix.go +++ b/windowReposFix.go @@ -18,25 +18,6 @@ import ( "go.wit.com/log" ) -type stdReposTableWin struct { - sync.Mutex - win *gadgets.GenericWindow // the machines gui window - boxTB *gui.Node // the machines gui parent box widget - TB *gitpb.ReposTable // the gui table buffer - pb *gitpb.Repos // the current repos protobuf - update bool // if the window should be updated -} - -func (w *stdReposTableWin) Toggle() { - if w == nil { - return - } - if w.win == nil { - return - } - w.win.Toggle() -} - func makeReposWin() *stdReposTableWin { rwin := new(stdReposTableWin) win := gadgets.NewGenericWindow("git repos", "All about git repos") @@ -592,24 +573,3 @@ func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable t.ShowTable() return t } - -func makeReposWindowNew() *gadgets.GenericWindow { - win := gadgets.NewGenericWindow("git repos", "Filter") - win.Custom = func() { - // sets the hidden flag to false so Toggle() works - win.Hide() - } - - hbox := win.Group.Box().Horizontal() - hbox.NewCheckbox("broken") - hbox.NewCheckbox("dirty") - hbox.NewCheckbox("mine") - hbox.NewButton("fix all", func() { - log.Info("try to fix everything here") - }) - - t := makeStandardReposGrid(me.forge.Repos) - t.SetParent(win.Bottom) - t.ShowTable() - return win -} |
