diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 97607b2..56122ea 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -2,6 +2,8 @@ ## [Unreleased] +- Fix ImageButton bool return value + ### Changed - Fix backspace handling on macOS diff --git a/src/widget/image.rs b/src/widget/image.rs index e805520..86b6b0f 100644 --- a/src/widget/image.rs +++ b/src/widget/image.rs @@ -129,7 +129,7 @@ impl ImageButton { self } /// Builds the image button - pub fn build(self, _: &Ui) { + pub fn build(self, _: &Ui) -> bool { unsafe { sys::igImageButton( self.texture_id.id() as *mut c_void, @@ -139,7 +139,7 @@ impl ImageButton { self.frame_padding, self.bg_col.into(), self.tint_col.into(), - ); + ) } } }