Add PROJECTNAME resolution into project's resolver

This commit is contained in:
Marek Roszko
2025-01-12 11:43:10 -05:00
parent 2c330e07be
commit 6ec00f879c
+9
View File
@@ -71,6 +71,15 @@ PROJECT::~PROJECT()
bool PROJECT::TextVarResolver( wxString* aToken ) const
{
// Special case because the resolution of PROJECTNAME is usually tied to title blocks
// but we want this for jobs
// Future todo is to rework vars entirely
if( aToken->IsSameAs( wxT( "PROJECTNAME" ) ) )
{
*aToken = GetProjectName();
return true;
}
if( GetTextVars().count( *aToken ) > 0 )
{
*aToken = GetTextVars().at( *aToken );