7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 12:01:41 +00:00

Don't translate wxFileDialog "All Files" filter.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20297
This commit is contained in:
Alex Shvartzkop 2025-03-10 16:05:30 +03:00
parent 3ddaa24775
commit c4655da4e6
2 changed files with 5 additions and 2 deletions

View File

@ -318,7 +318,7 @@ void PANEL_EMBEDDED_FILES::onAddEmbeddedFiles( wxCommandEvent& event )
{
// TODO: Update strings to reflect that multiple files can be selected.
wxFileDialog fileDialog( this, _( "Select a file to embed" ), wxEmptyString, wxEmptyString,
_( "All files|*.*" ),
_( "All Files" ) + wxT( " (*.*)|*.*" ),
wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_MULTIPLE );
if( fileDialog.ShowModal() == wxID_OK )

View File

@ -367,8 +367,11 @@ protected:
if( filename.IsEmpty() || filename == wxT( "~" ) )
{
FILEDLG_OPEN_EMBED_FILE customize;
wxFileDialog openFileDialog( this, _( "Open file" ), "", "", "All files (*.*)|*.*",
wxFileDialog openFileDialog( this, _( "Open file" ), "", "",
_( "All Files" ) + wxT( " (*.*)|*.*" ),
wxFD_OPEN | wxFD_FILE_MUST_EXIST );
openFileDialog.SetCustomizeHook( customize );
if( openFileDialog.ShowModal() == wxID_OK )