Forbid downscaling rich_button icon
This commit is contained in:
parent
7865297995
commit
63ef539303
1 changed files with 5 additions and 1 deletions
|
|
@ -34,7 +34,11 @@ namespace psemek::ui
|
|||
|
||||
icon_ = std::move(icon);
|
||||
children_[0] = icon_.get();
|
||||
if (icon_) icon_->set_parent(this);
|
||||
if (icon_)
|
||||
{
|
||||
icon_->set_parent(this);
|
||||
icon_->set_downscale(false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue