mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-19 23:21:33 +01:00
Remove superfluous code for changing transport button images
This commit is contained in:
@@ -392,18 +392,6 @@ void AButton::OnMouseEvent(wxMouseEvent & event)
|
|||||||
(event.m_x >= 0 && event.m_y >= 0 &&
|
(event.m_x >= 0 && event.m_y >= 0 &&
|
||||||
event.m_x < clientSize.x && event.m_y < clientSize.y);
|
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 (mEnabled && event.IsButton()) {
|
||||||
if (event.ButtonIsDown(wxMOUSE_BTN_ANY)) {
|
if (event.ButtonIsDown(wxMOUSE_BTN_ANY)) {
|
||||||
mIsClicking = true;
|
mIsClicking = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user