mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Also do the comperty comparison in C++
This commit is contained in:
parent
2ece3817cc
commit
1eb7203ec8
6 changed files with 82 additions and 4 deletions
|
@ -41,8 +41,10 @@ struct Property
|
|||
|
||||
void set(const T &value) const
|
||||
{
|
||||
this->value = value;
|
||||
cbindgen_private::sixtyfps_property_set_changed(&inner, &this->value);
|
||||
if (this->value != value) {
|
||||
this->value = value;
|
||||
cbindgen_private::sixtyfps_property_set_changed(&inner, &this->value);
|
||||
}
|
||||
}
|
||||
|
||||
const T &get() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue