1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

No close button. Use the close X.

I find I keep clicking the close button by mistake.  It's rare to want to cancel a previewed effect.  So trying it like this instead?
This commit is contained in:
James Crook 2015-04-25 21:06:27 +01:00
parent 9bc32b0e6b
commit f955376372

View File

@ -2401,7 +2401,8 @@ void EffectDialog::Init()
long buttons = eOkButton;
if (mType != EffectTypeAnalyze)
{
buttons |= eCancelButton;
//JKC I find the cancel button gets in the way of ordinary effects.
//buttons |= eCancelButton;
if (mType == EffectTypeProcess)
{
buttons |= ePreviewButton;
@ -2789,7 +2790,7 @@ bool EffectUIHost::Initialize()
bar->SetSizerAndFit(bs);
wxSizer *s = CreateStdButtonSizer(this, eApplyButton | eCloseButton | (mEffect->mUIDebug ? eDebugButton : 0), bar);
wxSizer *s = CreateStdButtonSizer(this, eApplyButton | /*eCloseButton | */(mEffect->mUIDebug ? eDebugButton : 0), bar);
vs->Add(s, 0, wxEXPAND | wxALIGN_CENTER_VERTICAL);
SetSizer(vs);