mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
small ArdourButton optimization
This commit is contained in:
parent
8c81808db7
commit
c4e610d091
1 changed files with 3 additions and 0 deletions
|
|
@ -172,6 +172,9 @@ ArdourButton::set_layout_font (const Pango::FontDescription& fd)
|
|||
void
|
||||
ArdourButton::set_text (const std::string& str)
|
||||
{
|
||||
if (_text == str) {
|
||||
return;
|
||||
}
|
||||
_text = str;
|
||||
if (!is_realized()) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue