fix: get rid of duplicate scale events (#5404)

This commit is contained in:
nerix
2024-05-19 11:11:51 +02:00
committed by GitHub
parent 869562263f
commit 8689bdb481
9 changed files with 55 additions and 26 deletions
+5 -1
View File
@@ -54,7 +54,11 @@ float BaseWidget::scale() const
void BaseWidget::setScale(float value)
{
// update scale value
if (this->scale_ == value)
{
return;
}
this->scale_ = value;
this->scaleChangedEvent(this->scale());