diff --git a/main/core.js b/main/core.js index f70feb0c9..7b4a9cd96 100644 --- a/main/core.js +++ b/main/core.js @@ -39,7 +39,7 @@ async function setup (ctx) { ctx.showUI() const { filePath } = await dialog.showSaveDialog(opts) if (filePath) { - await fs.writeFile(filePath, logs.getLines()) + await fs.writeFile(filePath, logs.get()) } } await maybeMigrateFiles() diff --git a/main/logs.js b/main/logs.js index 5dae33d0f..9c3173ee2 100644 --- a/main/logs.js +++ b/main/logs.js @@ -13,7 +13,7 @@ class Logs { this.#logs.splice(0, this.#logs.length - 100) } - getLines () { + get () { return this.getLastLines(Infinity) }