浏览代码

Fix: SetGroup return value consistency

amyadzuki 7 年之前
父节点
当前提交
685591bb59
共有 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