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