mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-23 16:08:07 +02:00
Remove superfluous code for changing transport button images
This commit is contained in:
parent
fbf09d2130
commit
0ee65c0918
@ -392,18 +392,6 @@ void AButton::OnMouseEvent(wxMouseEvent & event)
|
||||
(event.m_x >= 0 && event.m_y >= 0 &&
|
||||
event.m_x < clientSize.x && event.m_y < clientSize.y);
|
||||
|
||||
if (!mButtonIsDown)
|
||||
{
|
||||
// Note that CMD (or CTRL) takes precedence over Shift if both are down
|
||||
// see also AButton::Listener::OnKeyUp()
|
||||
if (event.CmdDown() && HasAlternateImages(2))
|
||||
mAlternateIdx = 2;
|
||||
else if (event.ShiftDown() && HasAlternateImages(1))
|
||||
mAlternateIdx = 1;
|
||||
else
|
||||
mAlternateIdx = 0;
|
||||
}
|
||||
|
||||
if (mEnabled && event.IsButton()) {
|
||||
if (event.ButtonIsDown(wxMOUSE_BTN_ANY)) {
|
||||
mIsClicking = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user