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:
parent
953d31c8d3
commit
f56f0f3dd7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user