macOS: Always show file type selector

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13716
This commit is contained in:
Jon Evans 2023-01-31 12:47:37 -05:00
parent 9ca539b416
commit 563143951f
1 changed files with 3 additions and 1 deletions

View File

@ -21,11 +21,13 @@
#include <kiplatform/app.h>
#include <wx/string.h>
#include <wx/sysopt.h>
bool KIPLATFORM::APP::Init()
{
// No special OSX init tasks
// KiCad relies on showing the file type selector in a few places; force it to be shown
wxSystemOptions::SetOption( wxS( "osx.openfiledialog.always-show-types" ), 1 );
return true;
}