1
0

Increase settings window width and add placeholder code blocks

This commit is contained in:
2025-06-01 05:37:05 +02:00
parent 8530100019
commit 1772e9d53b

28
main.js
View File

@@ -115,7 +115,7 @@ function openSettings(win) {
settingsWin = new BrowserWindow({
parent: win,
modal: true,
width: 450,
width: 600,
height: 450,
resizable: false,
webPreferences: {
@@ -1191,6 +1191,16 @@ function buildTrayMenu() {
ipcMain.handle('get-skip-git-prompt', () => store.get('skipGitPrompt'));
ipcMain.handle('set-skip-git-prompt', (_e,val) => store.set('skipGitPrompt', val));
// Auto-Verzeichnisstruktur
const IGNORED_NAMES = [
'.DS_Store', 'node_modules', '.git', 'dist', 'build',
@@ -1226,6 +1236,17 @@ function buildTrayMenu() {
}
});
/*
ipcMain.handle('commit-current-folder', async (_e, folderObj, message) => {
if (folderObj.needsRelocation || !fs.existsSync(folderObj.path)) {
return {};
@@ -1310,6 +1331,11 @@ function buildTrayMenu() {
}
});
*/
ipcMain.handle('set-monitoring', async (_e, folderPath, monitoring) => {
let folders = store.get('folders') || [];
const folderObj = folders.find(f => f.path === folderPath);