From d640044dc3d51c63955ace49940664831d7f3d7f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 1 Jun 2025 09:43:47 +0200 Subject: [PATCH] auto-git: [change] main.js --- main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.js b/main.js index 8183335..e3775fd 100644 --- a/main.js +++ b/main.js @@ -29,6 +29,18 @@ const store = new Store({ } }); +let folders = store.get('folders') || []; +folders = folders.map(f => ({ + ...f, + needsRelocation: !fs.existsSync(f.path) +})); +store.set('folders', folders); +console.log("Startup-Folders:", store.get('folders')); + +let tray = null; +let isQuiting = false; + + function createTray(win) { const iconPath = path.join(__dirname, 'assets/icon/trayicon.png');