1
0

Comment out watchRepo calls in main.js

This commit is contained in:
2025-05-31 20:43:24 +02:00
parent a3b1df65db
commit 36cd56404b

View File

@@ -936,7 +936,7 @@ function buildTrayMenu() {
const folders = store.get('folders') || [];
folders.forEach(folderObj => {
if (fs.existsSync(path.join(folderObj.path, '.git', 'refs', 'heads', 'master'))) {
watchRepo(folderObj.path, win);
//watchRepo(folderObj.path, win);
}
if (folderObj.monitoring) {
startMonitoringWatcher(folderObj.path, win);
@@ -987,7 +987,7 @@ function buildTrayMenu() {
store.set('folders', folders);
}
store.set('selected', newFolder);
watchRepo(newFolder, win);
//watchRepo(newFolder, win);
startMonitoringWatcher(newFolder, win);
return store.get('folders');
}