Przeglądaj źródła

Fix: SetGroup return value consistency

amyadzuki 7 lat temu
rodzic
commit
685591bb59
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      gui/checkradio.go

+ 2 - 1
gui/checkradio.go

@@ -123,9 +123,10 @@ func (cb *CheckRadio) Group() string {
 }
 
 // SetGroup sets the name of the radio group
-func (cb *CheckRadio) SetGroup(group string) {
+func (cb *CheckRadio) SetGroup(group string) *CheckRadio {
 
 	cb.group = group
+	return cb
 }
 
 // SetStyles set the button styles overriding the default style