add the hide readonly button
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
831b9c1885
commit
a3fde8fe6d
|
@ -45,6 +45,15 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
me.autoHideReadOnly = group1.NewCheckbox("Hide read-only repos").SetChecked(true)
|
me.autoHideReadOnly = group1.NewCheckbox("Hide read-only repos").SetChecked(true)
|
||||||
|
me.autoHidePerfect.Custom = func() {
|
||||||
|
if me.autoHideReadOnly.Checked() {
|
||||||
|
for _, repo := range me.allrepos {
|
||||||
|
if repo.status.ReadOnly() {
|
||||||
|
repo.Hide()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
me.autoHidePerfect = group1.NewCheckbox("Hide Perfectly clean repos").SetChecked(false)
|
me.autoHidePerfect = group1.NewCheckbox("Hide Perfectly clean repos").SetChecked(false)
|
||||||
me.autoHidePerfect.Custom = func() {
|
me.autoHidePerfect.Custom = func() {
|
||||||
|
|
Loading…
Reference in New Issue