Fix imagebox:set_image not returning anything

set_image should always return true or false according to the docs
This commit is contained in:
axujen 2017-04-06 19:33:14 +01:00 committed by GitHub
parent 8fa802d41a
commit 8e70b71c9c
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ function imagebox:set_image(image)
if self._private.image == image then
-- The image could have been modified, so better redraw
self:emit_signal("widget::redraw_needed")
return
return true
end
self._private.image = image