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:
parent
65fd505a70
commit
33535973be
5 changed files with 21 additions and 19 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue