mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 16:41:14 +02:00
Bug 2526 - Mac: multi-projects inhibit label text creation
Reverting previous fix as fix for bug #2531 seems to have resolved it better.
This commit is contained in:
parent
05a389f787
commit
528d04c8f0
@ -260,19 +260,6 @@ TrackPanel::TrackPanel(wxWindow * parent, wxWindowID id,
|
|||||||
#pragma warning( default: 4355 )
|
#pragma warning( default: 4355 )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// Whenever activation swaps between projects, the track panel "captures"
|
|
||||||
// the keyboard, which means its sub-cells like Label tracks are given
|
|
||||||
// the chance to process keystrokes before CommandManager.
|
|
||||||
static std::once_flag flag;
|
|
||||||
std::call_once(flag, []{
|
|
||||||
wxTheApp->Bind(EVT_PROJECT_ACTIVATION,
|
|
||||||
[](wxCommandEvent &){
|
|
||||||
auto pProject = GetActiveProject();
|
|
||||||
if ( pProject )
|
|
||||||
KeyboardCapture::Capture( &TrackPanel::Get( *pProject ) );
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
SetLayoutDirection(wxLayout_LeftToRight);
|
SetLayoutDirection(wxLayout_LeftToRight);
|
||||||
SetLabel(XO("Track Panel"));
|
SetLabel(XO("Track Panel"));
|
||||||
SetName(XO("Track Panel"));
|
SetName(XO("Track Panel"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user