Skip to content

Commit

Permalink
Fix git status position.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartanJ committed Jan 17, 2025
1 parent ebbb1ae commit 16a0da5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tools/ecode/plugins/git/gitplugin.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "gitplugin.hpp"
#include "gitbranchmodel.hpp"
#include "gitplugin.hpp"
#include "gitstatusmodel.hpp"
#include <eepp/graphics/primitives.hpp>
#include <eepp/scene/scenemanager.hpp>
Expand Down Expand Up @@ -362,6 +362,10 @@ void GitPlugin::updateStatusBarSync() {
} );
}

if ( mStatusBar->getChildCount() >= 2 &&
mStatusButton->getNodeIndex() != mStatusBar->getChildCount() - 2 )
mStatusButton->toPosition( mStatusBar->getChildCount() - 2 );

mStatusButton->setVisible( !mGit->getGitFolder().empty() );

if ( mGit->getGitFolder().empty() )
Expand Down

0 comments on commit 16a0da5

Please sign in to comment.