1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Projucer: Update window title when project name changes

This commit is contained in:
ed 2017-08-15 15:58:49 +01:00
parent 65fd505a70
commit 33535973be
5 changed files with 21 additions and 19 deletions

View file

@ -79,11 +79,6 @@ void Project::setTitle (const String& newTitle)
getMainGroup().getNameValue() = newTitle;
}
String Project::getTitle() const
{
return projectRoot.getChildWithName (Ids::MAINGROUP) [Ids::name];
}
String Project::getDocumentTitle()
{
return getTitle();
@ -458,6 +453,8 @@ void Project::valueTreePropertyChanged (ValueTree&, const Identifier& property)
{
if (property == Ids::projectType)
setMissingDefaultValues();
else if (property == Ids::name)
setTitle (projectRoot [Ids::name]);
changed();
}