Pass 'win' parameter to autoCommit in startMonitoringWatcher
This commit is contained in:
2
main.js
2
main.js
@@ -268,7 +268,7 @@ function startMonitoringWatcher(folderPath, win) {
|
|||||||
status.renamed.length > 0
|
status.renamed.length > 0
|
||||||
) {
|
) {
|
||||||
const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
|
const msg = buildCommitMessageFromStatus(status, 'auto-git: ');
|
||||||
const did = await autoCommit(folderPath, msg);
|
const did = await autoCommit(folderPath, msg, win);
|
||||||
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:\n${msg}`);
|
debug(`[MONITOR] Initialer Auto-Commit für ${folderPath} durchgeführt:\n${msg}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user