Skip to content

Commit 2cba96c

Browse files
committed
debug: refactoring
1 parent 751f76c commit 2cba96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ func (c *Context) updateControl(id controlID, bounds image.Rectangle, opt option
105105

106106
func (c *Context) Control(f func(bounds image.Rectangle) bool) bool {
107107
pc := caller()
108+
id := c.idFromCaller(pc)
108109
var res bool
109110
c.wrapError(func() error {
110-
id := c.idFromCaller(pc)
111111
var err error
112112
res, err = c.control(id, 0, func(bounds image.Rectangle, wasFocused bool) (bool, error) {
113113
return f(bounds), nil

0 commit comments

Comments
 (0)