Commit 1e6c8cf8 authored by Bernhard Stegmaier's avatar Bernhard Stegmaier Committed by Wayne Stambaugh

Enable file extension filters on OSX file dialog.

parent 4c6ca81f
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <wx/filename.h> #include <wx/filename.h>
#include <wx/snglinst.h> #include <wx/snglinst.h>
#include <wx/stdpaths.h> #include <wx/stdpaths.h>
#include <wx/sysopt.h>
#include <pgm_base.h> #include <pgm_base.h>
#include <wxstruct.h> #include <wxstruct.h>
...@@ -426,11 +427,15 @@ bool PGM_BASE::initPgm() ...@@ -426,11 +427,15 @@ bool PGM_BASE::initPgm()
// Set locale option for separator used in float numbers // Set locale option for separator used in float numbers
SetLocaleTo_Default(); SetLocaleTo_Default();
#ifdef __WXMAC__
// Always show filters on Open dialog to be able to choose plugin
wxSystemOptions::SetOption( wxOSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1 );
#endif
return true; return true;
} }
bool PGM_BASE::setExecutablePath() bool PGM_BASE::setExecutablePath()
{ {
m_bin_dir = wxStandardPaths::Get().GetExecutablePath(); m_bin_dir = wxStandardPaths::Get().GetExecutablePath();
......
...@@ -204,8 +204,6 @@ void UpdateCopyOfZonesList( PICKED_ITEMS_LIST& aPickList, ...@@ -204,8 +204,6 @@ void UpdateCopyOfZonesList( PICKED_ITEMS_LIST& aPickList,
PICKED_ITEMS_LIST& aAuxiliaryList, PICKED_ITEMS_LIST& aAuxiliaryList,
BOARD* aPcb ) BOARD* aPcb )
{ {
wxLogDebug( wxT( "Inside UpdadeCopyOfZonesList()." ) );
for( unsigned kk = 0; kk < aPickList.GetCount(); kk++ ) for( unsigned kk = 0; kk < aPickList.GetCount(); kk++ )
{ {
UNDO_REDO_T status = aPickList.GetPickedItemStatus( kk ); UNDO_REDO_T status = aPickList.GetPickedItemStatus( kk );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment