1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 15:50:05 +02:00

Only refresh play button if its state has changed.

This commit is contained in:
james.k.crook@gmail.com 2013-07-26 14:12:06 +00:00
parent 953d31c8d3
commit f56f0f3dd7

View File

@ -156,6 +156,10 @@ void AButton::SetAlternateImages(ImageRoll up,
void AButton::SetAlternate(bool useAlternateImages) void AButton::SetAlternate(bool useAlternateImages)
{ {
// If alternate-image-state is already correct then
// nothing to do (saves repainting button).
if( mAlternate == useAlternateImages )
return;
mAlternate = useAlternateImages; mAlternate = useAlternateImages;
Refresh(false); Refresh(false);
} }