ソースを参照

Merge pull request #67 from amyadzuki/patch-11

Fix: SetGroup return value consistency
Daniel Salvadori 7 年 前
コミット
0f34a45a03
1 ファイル変更2 行追加1 行削除
  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