From e69635bcf70b6fb1227e591d4f5657dea26eec11 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 10 Jun 2026 15:42:09 +0200 Subject: [PATCH] =?UTF-8?q?fix(backup):=20exclude=20upload=20history=20fro?= =?UTF-8?q?m=20export=20and=20import=20=E2=80=94=20Verlauf=20stays=20local?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 3 ++- renderer/app.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index ad8d7a3..6d06bf9 100644 --- a/main.js +++ b/main.js @@ -2046,6 +2046,7 @@ ipcMain.handle('export-backup', async () => { }); if (canceled || !filePath) return { ok: false, canceled: true }; const config = configStore.load(); + config.history = []; if (filePath.toLowerCase().endsWith('.json')) { fs.writeFileSync(filePath, JSON.stringify(config, null, 2), 'utf-8'); } else { @@ -2126,7 +2127,7 @@ ipcMain.handle('import-backup', async (_event, legacyPassword) => { hosters: imported.hosters, hosterSettings: imported.hosterSettings, globalSettings: importedGlobal, - history: imported.history || [] + history: [] }; await configStore._atomicWrite(configStore._serializeForDisk(merged)); return { ok: true, config: configStore.load() }; diff --git a/renderer/app.js b/renderer/app.js index ec51fde..26ed0f9 100644 --- a/renderer/app.js +++ b/renderer/app.js @@ -3109,7 +3109,7 @@ function renderSettings() { System