mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-13 04:42:12 +03:00
Update app title when focusing any new tab that it's not an editor or a terminal.
This commit is contained in:
@@ -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( "" );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user