Explorar o código

Make image button update after SetImage.

danaugrs %!s(int64=8) %!d(string=hai) anos
pai
achega
ca0b3061c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/image_button.go

+ 1 - 1
gui/image_button.go

@@ -147,7 +147,7 @@ func (b *ImageButton) SetImage(state ButtonState, imgfile string) error {
 		b.stateImages[state].Dispose()
 	}
 	b.stateImages[state] = tex
-
+	b.update()
 
 	return nil
 }