1
0

[auto] change main.js

This commit is contained in:
2025-05-23 22:51:57 +02:00
parent 8f5a9860a4
commit 89cebfe37f

10
main.js
View File

@@ -117,7 +117,7 @@ function startMonitoringWatcher(folderPath, win) {
awaitWriteFinish: { awaitWriteFinish: {
stabilityThreshold: 300, stabilityThreshold: 300,
pollInterval: 100 pollInterval: 100
} //yo }
}); });
// TODO: Optionale .gitignore Logik nachrüsten // TODO: Optionale .gitignore Logik nachrüsten
@@ -133,10 +133,10 @@ function startMonitoringWatcher(folderPath, win) {
// Initialer Commit, falls beim Start schon ungestagte Änderungen vorliegen // Initialer Commit, falls beim Start schon ungestagte Änderungen vorliegen
(async () => { (async () => {
debug(`[MONITOR] Starte initialen Commit-Check für ${folderPath}`); debug(`[MONITOR] Starte initialen Commit-Check für ${folderPath}`);
const did = await autoCommit( const event = 'startup';
folderPath, const changedPath = folderPath;
`[auto] startup ${event} ${path.relative(folderPath, folderPath)}` const msg = `[auto] ${event} ${path.relative(folderPath, changedPath)}`;
); const did = await autoCommit(folderPath, msg);
if (did) { if (did) {
win.webContents.send('repo-updated', folderPath); win.webContents.send('repo-updated', folderPath);
debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt.`); debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt.`);