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.
This commit is contained in:
Levi Neely 2026-07-23 08:53:41 +02:00
parent 1840a8cea9
commit 1d89a5652d
1 changed files with 3 additions and 3 deletions

View File

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