diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index 003a06f0d3..c0e6b4a874 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -50,6 +50,7 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aSho wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ), m_auxiliaryButton( nullptr ), m_resetButton( nullptr ), + m_openPrefsDirButton( nullptr ), m_cancelButton( nullptr ), m_title( aTitle ) { @@ -86,8 +87,12 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aSho if( aShowOpenFolder ) { - m_openPreferencesButton = new wxButton( this, wxID_ANY, _( "Open preferences folder" ) ); - m_buttonsSizer->Add( m_openPreferencesButton, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT, 5 ); +#ifdef __WXMAC__ + m_openPrefsDirButton = new wxButton( this, wxID_ANY, _( "Reveal Preferences in Finder" ) ); +#else + m_openPrefsDirButton = new wxButton( this, wxID_ANY, _( "Open Preferences Directory" ) ); +#endif + m_buttonsSizer->Add( m_openPrefsDirButton, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT, 5 ); } @@ -127,9 +132,9 @@ PAGED_DIALOG::PAGED_DIALOG( wxWindow* aParent, const wxString& aTitle, bool aSho m_resetButton->Bind( wxEVT_COMMAND_BUTTON_CLICKED, &PAGED_DIALOG::onResetButton, this ); } - if( m_openPreferencesButton ) + if( m_openPrefsDirButton ) { - m_openPreferencesButton->Bind( wxEVT_COMMAND_BUTTON_CLICKED, &PAGED_DIALOG::onOpenPreferencesButton, this ); + m_openPrefsDirButton->Bind( wxEVT_COMMAND_BUTTON_CLICKED, &PAGED_DIALOG::onOpenPreferencesButton, this ); } m_treebook->Bind( wxEVT_CHAR_HOOK, &PAGED_DIALOG::onCharHook, this ); @@ -199,9 +204,9 @@ PAGED_DIALOG::~PAGED_DIALOG() m_resetButton->Unbind( wxEVT_COMMAND_BUTTON_CLICKED, &PAGED_DIALOG::onResetButton, this ); } - if( m_openPreferencesButton ) + if( m_openPrefsDirButton ) { - m_openPreferencesButton->Unbind( wxEVT_COMMAND_BUTTON_CLICKED, &PAGED_DIALOG::onOpenPreferencesButton, this ); + m_openPrefsDirButton->Unbind( wxEVT_COMMAND_BUTTON_CLICKED, &PAGED_DIALOG::onOpenPreferencesButton, this ); } m_treebook->Unbind( wxEVT_CHAR_HOOK, &PAGED_DIALOG::onCharHook, this ); diff --git a/include/widgets/paged_dialog.h b/include/widgets/paged_dialog.h index 925d42c1c2..65a8cde573 100644 --- a/include/widgets/paged_dialog.h +++ b/include/widgets/paged_dialog.h @@ -68,7 +68,7 @@ protected: WX_TREEBOOK* m_treebook; wxButton* m_auxiliaryButton; wxButton* m_resetButton; - wxButton* m_openPreferencesButton; + wxButton* m_openPrefsDirButton; wxButton* m_cancelButton; WX_INFOBAR* m_infoBar;