imagebox: Don't emit signals if same image is set again
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
6b6b448b56
commit
ee001ce2f0
|
@ -95,6 +95,10 @@ function imagebox:set_image(image)
|
|||
end
|
||||
end
|
||||
|
||||
if self._image == image then
|
||||
return
|
||||
end
|
||||
|
||||
self._image = image
|
||||
|
||||
self:emit_signal("widget::redraw_needed")
|
||||
|
|
Loading…
Reference in New Issue