We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 971d201 commit 541ac2cCopy full SHA for 541ac2c
1 file changed
ImGuiFileDialog.cpp
@@ -1611,13 +1611,16 @@ namespace IGFD
1611
// if not a collection we can replace the filter by the extention we want
1612
if (m_SelectedFilter.collectionfilters.empty())
1613
{
1614
- size_t lastPoint = result.find_last_of('.');
1615
- if (lastPoint != std::string::npos)
+ if (m_SelectedFilter.filter.find('*') == std::string::npos && result != m_SelectedFilter.filter)
1616
1617
- result = result.substr(0, lastPoint);
1618
- }
+ size_t lastPoint = result.find_last_of('.');
+ if (lastPoint != std::string::npos)
+ {
1619
+ result = result.substr(0, lastPoint);
1620
+ }
1621
- result += m_SelectedFilter.filter;
1622
+ result += m_SelectedFilter.filter;
1623
1624
}
1625
1626
return result;
0 commit comments