Browse Source

Introjucer: Tweaked window title to show the filename if it differs from the project title

tags/2021-05-28
jules 9 years ago
parent
commit
504680978f
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      extras/Introjucer/Source/Application/jucer_MainWindow.cpp

+ 9
- 2
extras/Introjucer/Source/Application/jucer_MainWindow.cpp View File

@@ -280,10 +280,17 @@ void MainWindow::updateTitle (const String& documentName)
String name (IntrojucerApp::getApp().getApplicationName());
if (currentProject != nullptr)
name << " - " << currentProject->getDocumentTitle();
{
String projectName (currentProject->getDocumentTitle());
if (currentProject->getFile().getFileNameWithoutExtension() != projectName)
projectName = currentProject->getFile().getFileName();
name << " - " << projectName;
}
if (documentName.isNotEmpty())
name << " - " << documentName;
name << " - " << documentName;
setName (name);
}


Loading…
Cancel
Save