From f95537637238b528d52df77af6c0ce88c05a93f9 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sat, 25 Apr 2015 21:06:27 +0100 Subject: [PATCH] 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? --- src/effects/Effect.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/effects/Effect.cpp b/src/effects/Effect.cpp index 84c0cf940..1a29cd4db 100644 --- a/src/effects/Effect.cpp +++ b/src/effects/Effect.cpp @@ -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);