Fix object code

This commit is contained in:
2024-09-12 02:34:28 -04:00
parent dca3880a87
commit c2245ec304
7 changed files with 31 additions and 26 deletions

View File

@@ -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)