mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
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/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()
|
|||||||
// 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,
|
|||||||
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 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user