Show "No git repository" instead of staying on "initializing"

This commit is contained in:
Levi Neely 2026-07-22 16:19:54 +02:00
parent f1ffad7eb8
commit c520e46cf5
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}