mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 08:33:36 +02:00
Only refresh play button if its state has changed.
This commit is contained in:
@@ -156,6 +156,10 @@ void AButton::SetAlternateImages(ImageRoll up,
|
||||
|
||||
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;
|
||||
Refresh(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user