mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 22:28:57 +02:00
Bug 1629 - Edit Toolbar buttons work once only.
This commit is contained in:
parent
03f6efb8ca
commit
b3d6186cf9
@ -250,9 +250,9 @@ void EditToolBar::OnButton(wxCommandEvent &event)
|
||||
auto cleanup = finally( [&] {
|
||||
bool bIsToggle = false;
|
||||
#ifdef OPTION_SYNC_LOCK_BUTTON
|
||||
bIsToggle = bIsToggle || ( id != ETBSyncLockID );
|
||||
bIsToggle = bIsToggle || ( id == ETBSyncLockID );
|
||||
#endif
|
||||
if( bIsToggle )
|
||||
if( !bIsToggle )
|
||||
SetButton(false, mButtons[id]);
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user