Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' into databinding

  • Loading branch information...
commit 06c8b6c89ae1242f7c8e79e26fefc338d786c713 2 parents 3405667 + 141d4ee
@lxn authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 declarative/util.go
View
14 declarative/util.go
@@ -97,6 +97,13 @@ func InitWidget(d Widget, w walk.Widget, customInit func() error) error {
}
}
+ // Custom
+ if customInit != nil {
+ if err := customInit(); err != nil {
+ return err
+ }
+ }
+
// Widget continued
w.SetEnabled(!disabled)
w.SetVisible(!hidden)
@@ -109,13 +116,6 @@ func InitWidget(d Widget, w walk.Widget, customInit func() error) error {
}
}
- // Custom
- if customInit != nil {
- if err := customInit(); err != nil {
- return err
- }
- }
-
succeeded = true
return nil
Please sign in to comment.
Something went wrong with that request. Please try again.