kicad manager: make extension change warning for Rename case-insensitive.

This commit is contained in:
Alex Shvartzkop 2023-10-29 22:01:48 +03:00
parent c41cd75b62
commit cb1a596b10
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ bool PROJECT_TREE_ITEM::Rename( const wxString& name, bool check )
wxString ext = PROJECT_TREE_PANE::GetFileExt( GetType() );
wxString full_ext = wxT( "." ) + ext;
if( check && !ext.IsEmpty() && !newFile.EndsWith( full_ext ) )
if( check && !ext.IsEmpty() && !newFile.Lower().EndsWith( full_ext.Lower() ) )
{
wxMessageDialog dialog( m_parent, _( "Changing file extension will change file type.\n"
"Do you want to continue ?" ),