From 1d89a5652dc300c52be218b6f97d9e7ab3af1e4d Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 23 Jul 2026 08:53:41 +0200 Subject: [PATCH] Always re-detect workspace on project change Remove the newDir != m_gitDir guard in onProjectChanged so workspace detection always runs when the project switches, regardless of whether projectBaseDir() returns the same path. --- gitplusplus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitplusplus.cpp b/gitplusplus.cpp index f95afc6..dbe3641 100644 --- a/gitplusplus.cpp +++ b/gitplusplus.cpp @@ -1054,9 +1054,9 @@ void GitPlusPlusView::runRemoteGit(const QStringList &args, const QString &opNam void GitPlusPlusView::onProjectChanged() { QString newDir = projectBaseDir(); - if (newDir != m_gitDir) { - m_gitDir = newDir; - detectWorkspace(); + m_gitDir = newDir; + detectWorkspace(); + if (!m_gitDir.isEmpty()) { setupFileWatcher(); refreshAll(); }