Fix object code
This commit is contained in:
@@ -90,9 +90,9 @@ func (this *Swatch) Choose () {
|
||||
var err error
|
||||
var window tomo.Window
|
||||
if parent := this.box.Window(); parent != nil {
|
||||
window, err = parent.NewChild(image.Rectangle { })
|
||||
window, err = parent.NewChild(tomo.WindowKindNormal, image.Rectangle { })
|
||||
} else {
|
||||
window, err = tomo.NewWindow(image.Rectangle { })
|
||||
window, err = tomo.NewWindow(tomo.WindowKindNormal, image.Rectangle { })
|
||||
}
|
||||
if err != nil {
|
||||
log.Println("objects: could not create swatch modal:", err)
|
||||
|
||||
Reference in New Issue
Block a user