diff options
| author | Jeff Carr <[email protected]> | 2024-02-29 19:51:28 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-29 19:51:28 -0600 |
| commit | 5aa110ae8b5e643cdb40d8e8e415bf77d08ffd53 (patch) | |
| tree | de986187eb84853f439d528be32de64f6f34a74c /globalDisplayOptions.go | |
| parent | 2c1cd3343bfc0d3c032965da9eed62ea511bb3b8 (diff) | |
guireleaser works again
Diffstat (limited to 'globalDisplayOptions.go')
| -rw-r--r-- | globalDisplayOptions.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index e5489f7..055f0ab 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -27,10 +27,14 @@ func globalDisplayOptions(box *gui.Node) { hidegrid.NextRow() me.autoHideReadOnly = hidegrid.NewCheckbox("Hide read-only repos").SetChecked(true) - // me.autoHideReadOnly.Custom = func() { - // log.Info("registered hide function to globalDisplayShow()") - // me.repos.View.RegisterHideFunction(globalDisplayShow) - // } + me.autoHideReadOnly.Custom = func() { + if me.autoHideReadOnly.Checked() { + os.Setenv("AUTOTYPIST_READONLY", "hide") + } else { + os.Unsetenv("AUTOTYPIST_READONLY") + } + } + os.Setenv("AUTOTYPIST_READONLY", "hide") hidegrid.NextRow() me.autoHideReleased = hidegrid.NewCheckbox("Hide Released repos").SetChecked(true) |
