Honour platform standards on MSW for files beginning with '.'.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14221
This commit is contained in:
parent
0747d35228
commit
f6dc67dc3b
|
@ -380,10 +380,12 @@ wxTreeItemId PROJECT_TREE_PANE::addItemToProjectTree( const wxString& aName,
|
||||||
TREE_FILE_TYPE type = TREE_FILE_TYPE::UNKNOWN;
|
TREE_FILE_TYPE type = TREE_FILE_TYPE::UNKNOWN;
|
||||||
wxFileName fn( aName );
|
wxFileName fn( aName );
|
||||||
|
|
||||||
// Files/dirs names starting by "." are not visible files under unices.
|
#ifndef __WXMSW__
|
||||||
// Skip them also under Windows
|
// Files/dirs names starting by "." are not visible files under unices (including MacOS),
|
||||||
|
// but are under MSW.
|
||||||
if( fn.GetName().StartsWith( wxT( "." ) ) )
|
if( fn.GetName().StartsWith( wxT( "." ) ) )
|
||||||
return wxTreeItemId();
|
return wxTreeItemId();
|
||||||
|
#endif
|
||||||
|
|
||||||
if( wxDirExists( aName ) )
|
if( wxDirExists( aName ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue