1
0

Update buildTrayMenu to check for .git directory

This commit is contained in:
Victor Giers
2025-11-27 11:48:39 +01:00
parent c508800f83
commit 3b5fc1c8c1

View File

@@ -1864,6 +1864,9 @@ function buildTrayMenu() {
if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) {
return false;
}
if (!fs.existsSync(path.join(folderObj.path, '.git'))) {
return false;
}
const git = simpleGit(folderObj.path);
const status = await git.status();
return status.files.length > 0;