Commit e979cc2e authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Make sure git branch is always visible in a git repo

parent 2817a59b
......@@ -72,7 +72,7 @@ KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject
/**
* Setup git checkout stuff
*/
m_branchBtn->setHidden(true);
m_branchBtn->setHidden(!GitUtils::isGitRepo(m_project->baseDir()));
connect(m_branchBtn, &QPushButton::clicked, this, [this, mainWindow] {
BranchCheckoutDialog bd(mainWindow->window(), m_pluginView, m_project->baseDir());
bd.openDialog();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment