Skip to content

Commit bef560a

Browse files
andy128ksdroege
andauthored
Update examples/gio_action_impl/action.rs
Co-authored-by: Sebastian Dröge <[email protected]>
1 parent 482d8ef commit bef560a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/gio_action_impl/action.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ mod imp {
2929
}
3030

3131
fn set_property(&self, id: usize, value: &glib::Value, pspec: &glib::ParamSpec) {
32-
let _ = self.delegate_set_property(id, value, pspec) || {
32+
if !self.delegate_set_property(id, value, pspec) {
3333
self.derived_set_property(id, value, pspec);
34-
true
35-
};
34+
}
3635
}
3736

3837
fn property(&self, id: usize, pspec: &glib::ParamSpec) -> glib::Value {

0 commit comments

Comments
 (0)