Skip to content

Commit

Permalink
Improve file filter when selecting individual file
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Nov 29, 2024
1 parent c2df2a5 commit ba1b7dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/projectdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,12 @@ void NewProjectDialog::OnFolderButtonClick([[maybe_unused]] wxCommandEvent&)
void NewProjectDialog::OnFileButtonClick([[maybe_unused]] wxCommandEvent&)
{
TransferDataFromWindow();
wxFileDialog dialog(this, _(L"Select Files to Analyze"), wxString{}, wxString{},
_(L"All Files (*.*)|*.*"), wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_PREVIEW);
wxFileDialog dialog(
this, _(L"Select Files to Analyze"), wxString{}, wxString{},
_(L"Source Files (*.cpp; *.c; *.h; *.hpp)|*.cpp;*.c;*.h;*.hpp|"
"gettext Catalogs (*.po)|*.po|Windows Resource Files (*.rc)|*.rc|"
"All Supported Files|*.cpp;*.c;*.h;*.hpp;*.po;*.rc"),
wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_PREVIEW);
if (dialog.ShowModal() != wxID_OK)
{
return;
Expand Down

0 comments on commit ba1b7dc

Please sign in to comment.