Update from Git Manager GUI
This commit is contained in:
@@ -4048,6 +4048,8 @@ window.addEventListener('DOMContentLoaded', async () => {
|
|||||||
if (cbColorIcons) cbColorIcons.checked = featureColoredIcons;
|
if (cbColorIcons) cbColorIcons.checked = featureColoredIcons;
|
||||||
const cbAutostart = $('settingAutostart');
|
const cbAutostart = $('settingAutostart');
|
||||||
if (cbAutostart) cbAutostart.checked = featureAutostart;
|
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
|
// 🆕 AUTO-LOGIN: Wenn Gitea-Credentials vorhanden sind, lade sofort die Repos
|
||||||
if (creds.giteaToken && creds.giteaURL) {
|
if (creds.giteaToken && creds.giteaURL) {
|
||||||
@@ -4440,7 +4442,9 @@ window.addEventListener('DOMContentLoaded', async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const existingCreds = await window.electronAPI.loadCredentials() || {};
|
||||||
const data = {
|
const data = {
|
||||||
|
...existingCreds,
|
||||||
githubToken: $('githubToken').value,
|
githubToken: $('githubToken').value,
|
||||||
giteaToken: $('giteaToken').value,
|
giteaToken: $('giteaToken').value,
|
||||||
giteaURL: checkedUrl.value,
|
giteaURL: checkedUrl.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user