Enable file extension filters on OSX file dialog.
This commit is contained in:
parent
4c6ca81f2c
commit
1e6c8cf88f
|
@ -37,6 +37,7 @@
|
|||
#include <wx/filename.h>
|
||||
#include <wx/snglinst.h>
|
||||
#include <wx/stdpaths.h>
|
||||
#include <wx/sysopt.h>
|
||||
|
||||
#include <pgm_base.h>
|
||||
#include <wxstruct.h>
|
||||
|
@ -426,11 +427,15 @@ bool PGM_BASE::initPgm()
|
|||
// Set locale option for separator used in float numbers
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool PGM_BASE::setExecutablePath()
|
||||
{
|
||||
m_bin_dir = wxStandardPaths::Get().GetExecutablePath();
|
||||
|
|
|
@ -204,8 +204,6 @@ void UpdateCopyOfZonesList( PICKED_ITEMS_LIST& aPickList,
|
|||
PICKED_ITEMS_LIST& aAuxiliaryList,
|
||||
BOARD* aPcb )
|
||||
{
|
||||
wxLogDebug( wxT( "Inside UpdadeCopyOfZonesList()." ) );
|
||||
|
||||
for( unsigned kk = 0; kk < aPickList.GetCount(); kk++ )
|
||||
{
|
||||
UNDO_REDO_T status = aPickList.GetPickedItemStatus( kk );
|
||||
|
|
Loading…
Reference in New Issue