mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Change affirmative button label to OK for modal dialogs
This commit is contained in:
parent
2d5a68e4a4
commit
e684fe9e1f
@ -24,12 +24,13 @@ greater use in future.
|
||||
#include "../Audacity.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/hashmap.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/timer.h>
|
||||
#include <wx/stockitem.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/tglbtn.h>
|
||||
#include <wx/hashmap.h>
|
||||
#include <wx/timer.h>
|
||||
#include <wx/utils.h>
|
||||
|
||||
#include "audacity/ConfigInterface.h"
|
||||
@ -2738,15 +2739,17 @@ bool EffectUIHost::TransferDataFromWindow()
|
||||
// wxDialog implementation
|
||||
// ============================================================================
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
// See explanation in EffectUIHost::Show()
|
||||
int EffectUIHost::ShowModal()
|
||||
{
|
||||
#if defined(__WXMAC__)
|
||||
// See explanation in EffectUIHost::Show()
|
||||
mIsModal = true;
|
||||
#endif
|
||||
|
||||
mApplyBtn->SetLabel(wxGetStockLabel(wxID_OK));
|
||||
|
||||
return wxDialog::ShowModal();
|
||||
}
|
||||
#endif
|
||||
|
||||
// ============================================================================
|
||||
// EffectUIHost implementation
|
||||
@ -3659,7 +3662,6 @@ void EffectPresetsDialog::SetPrefix(const wxString & type, const wxString & pref
|
||||
{
|
||||
mType->SetStringSelection(type);
|
||||
|
||||
int selected;
|
||||
if (type.IsSameAs(_("User Presets")))
|
||||
{
|
||||
mPresets->Clear();
|
||||
|
@ -480,9 +480,7 @@ public:
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
virtual int ShowModal();
|
||||
#endif
|
||||
|
||||
bool Initialize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user