Forgot a small change when click the git status button.

This commit is contained in:
Martín Lucas Golini
2024-01-20 14:22:45 -03:00
parent f35cc3d034
commit 4e870ade2f

View File

@@ -589,8 +589,11 @@ void GitPlugin::updateStatusBarSync() {
mStatusButton->toPosition( mStatusBar->getChildCount() - 2 );
mStatusButton->on( Event::MouseClick, [this]( const Event* ) {
if ( mTab )
if ( mTab ) {
mTab->setTabSelected();
if ( mGitStatus.totalInserts || mGitStatus.totalDeletions )
mPanelSwicher->getListBox()->setSelected( 1 );
}
} );
}