mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Some performance optimizations.
This commit is contained in:
@@ -116,11 +116,17 @@ void App::updateEditorTitle( UICodeEditor* editor ) {
|
||||
}
|
||||
|
||||
void App::setAppTitle( const std::string& title ) {
|
||||
mWindow->setTitle( mWindowTitle +
|
||||
String( mCurrentProject.empty()
|
||||
? ""
|
||||
: " - " + FileSystem::fileNameFromPath( mCurrentProject ) ) +
|
||||
String( title.empty() ? "" : " - " + title ) );
|
||||
std::string fullTitle( mWindowTitle );
|
||||
if ( !mCurrentProject.empty() ) {
|
||||
std::string currentProject( FileSystem::fileNameFromPath( mCurrentProject ) );
|
||||
if ( !currentProject.empty() )
|
||||
fullTitle += " - " + currentProject;
|
||||
}
|
||||
|
||||
if ( !title.empty() )
|
||||
fullTitle += " - " + title;
|
||||
|
||||
mWindow->setTitle( fullTitle );
|
||||
}
|
||||
|
||||
void App::onDocumentModified( UICodeEditor* editor, TextDocument& ) {
|
||||
|
||||
Reference in New Issue
Block a user