Refactor: Comment out unused code in main.js
This commit is contained in:
3
main.js
3
main.js
@@ -206,6 +206,7 @@ async function ensureOllamaRunning() {
|
|||||||
* Startet einen File-Watcher auf .git/refs/heads/master,
|
* Startet einen File-Watcher auf .git/refs/heads/master,
|
||||||
* sendet bei Änderungen 'repo-updated' an den Renderer.
|
* sendet bei Änderungen 'repo-updated' an den Renderer.
|
||||||
*/
|
*/
|
||||||
|
/*)
|
||||||
function watchRepo(folder, win) {
|
function watchRepo(folder, win) {
|
||||||
const gitHead = path.join(folder, '.git', 'refs', 'heads', 'master');
|
const gitHead = path.join(folder, '.git', 'refs', 'heads', 'master');
|
||||||
const watcher = chokidar.watch(gitHead, { ignoreInitial: true });
|
const watcher = chokidar.watch(gitHead, { ignoreInitial: true });
|
||||||
@@ -213,7 +214,7 @@ function watchRepo(folder, win) {
|
|||||||
win.webContents.send('repo-updated', folder);
|
win.webContents.send('repo-updated', folder);
|
||||||
});
|
});
|
||||||
repoWatchers.set(folder, watcher);
|
repoWatchers.set(folder, watcher);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initiiert ein Git-Repo in `folder`, falls noch nicht vorhanden,
|
* Initiiert ein Git-Repo in `folder`, falls noch nicht vorhanden,
|
||||||
|
|||||||
Reference in New Issue
Block a user