Update app title when focusing any new tab that it's not an editor or a terminal.

This commit is contained in:
Martín Lucas Golini
2026-04-12 15:45:04 -03:00
parent c013546d52
commit 2e481f40f3
5 changed files with 28 additions and 2 deletions

View File

@@ -1679,8 +1679,14 @@ void App::onWidgetFocusChange( UIWidget* widget ) {
if ( widget && !widget->isType( UI_TYPE_CODEEDITOR ) ) {
if ( widget->isType( UI_TYPE_TERMINAL ) )
setAppTitle( widget->asType<UITerminal>()->getTitle() );
else
setAppTitle( "" );
else {
UITab* tab = nullptr;
if ( ( tab = mSplitter->getTabFromWidget( widget ) ) ) {
setAppTitle( tab->getText() );
} else {
setAppTitle( "" );
}
}
}
}