From 3b5fc1c8c1648003ac06a0f4d750c2259802bc9e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 27 Nov 2025 11:48:39 +0100 Subject: [PATCH] Update buildTrayMenu to check for .git directory --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index 8c22154..3b26453 100755 --- a/main.js +++ b/main.js @@ -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;