mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-17 22:21:17 +01:00
More of bug 1338: avoid Mac hang with modal invocation of plugin...
... This required a separate set of changes and testing for the VST version of
SPAN, another for the AU version.
see commit c8e570797f
This commit is contained in:
@@ -1747,7 +1747,7 @@ bool AudioUnitEffect::PopulateUI(wxWindow *parent)
|
||||
{
|
||||
auto innerSizer = std::make_unique<wxBoxSizer>(wxVERTICAL);
|
||||
|
||||
innerSizer->Add(pControl.release(), 1, wxEXPAND);
|
||||
innerSizer->Add((mpControl = pControl.release()), 1, wxEXPAND);
|
||||
container->SetSizer(innerSizer.release());
|
||||
}
|
||||
|
||||
@@ -1808,6 +1808,8 @@ bool AudioUnitEffect::CloseUI()
|
||||
#ifdef __WX_EVTLOOP_BUSY_WAITING__
|
||||
wxEventLoop::SetBusyWaiting(false);
|
||||
#endif
|
||||
if (mpControl)
|
||||
mpControl->Close(), mpControl = nullptr;
|
||||
#endif
|
||||
|
||||
mParent->RemoveEventHandler(this);
|
||||
|
||||
Reference in New Issue
Block a user