Show "No git repository" instead of staying on "initializing"
This commit is contained in:
parent
f1ffad7eb8
commit
c520e46cf5
|
|
@ -2244,6 +2244,10 @@ void GitPlusPlusView::detectWorkspace()
|
|||
m_gitDir = projectBaseDir();
|
||||
if (m_gitDir.isEmpty()) {
|
||||
m_repoCombo->hide();
|
||||
m_repoLabel->setText(QStringLiteral("No git repository"));
|
||||
m_repoLabel->setStyleSheet(QStringLiteral("font-weight: bold; padding: 2px 4px; color: gray;"));
|
||||
if (m_statusBarWidget)
|
||||
m_statusBarWidget->setText(QStringLiteral("Git++"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue