From c520e46cf573f48d366eff147ec27e8958d35cc0 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 22 Jul 2026 16:19:54 +0200 Subject: [PATCH] Show "No git repository" instead of staying on "initializing" --- gitplusplus.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitplusplus.cpp b/gitplusplus.cpp index 6fd7ebb..891ab0f 100644 --- a/gitplusplus.cpp +++ b/gitplusplus.cpp @@ -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; }