diff --git a/renderer/renderer.js b/renderer/renderer.js index 8bcd012..902aa9f 100644 --- a/renderer/renderer.js +++ b/renderer/renderer.js @@ -4048,6 +4048,8 @@ window.addEventListener('DOMContentLoaded', async () => { if (cbColorIcons) cbColorIcons.checked = featureColoredIcons; const cbAutostart = $('settingAutostart'); if (cbAutostart) cbAutostart.checked = featureAutostart; + const cbAutoBackup = $('settingAutoBackup'); + if (cbAutoBackup) cbAutoBackup.checked = Boolean(creds.autoBackupEnabled); // 🆕 AUTO-LOGIN: Wenn Gitea-Credentials vorhanden sind, lade sofort die Repos if (creds.giteaToken && creds.giteaURL) { @@ -4440,7 +4442,9 @@ window.addEventListener('DOMContentLoaded', async () => { return; } + const existingCreds = await window.electronAPI.loadCredentials() || {}; const data = { + ...existingCreds, githubToken: $('githubToken').value, giteaToken: $('giteaToken').value, giteaURL: checkedUrl.value,