From 18eb25b70d12fabd6ca2b7d4c19eba4235010506 Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 22 Sep 2026 16:58:29 -0500 Subject: [PATCH 1/3] refactor(menu): collapse five export items into one Export submenu --- src/main/menu.ts | 50 +++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/src/main/menu.ts b/src/main/menu.ts index 7964a22..0bd9cb1 100644 --- a/src/main/menu.ts +++ b/src/main/menu.ts @@ -80,31 +80,33 @@ export function buildMenu( }, { type: "separator" }, { - label: "Export Markdown…", - accelerator: "CmdOrCtrl+Shift+E", + label: "Export", enabled: !!getState().bookPath, - click: () => getWindow()?.webContents.send("folio:export-markdown-requested"), - }, - { - label: "Export Bundle (ZIP)…", - enabled: !!getState().bookPath, - click: () => getWindow()?.webContents.send("folio:export-zip-requested"), - }, - { - label: "Export Full Book (PDF)…", - accelerator: "CmdOrCtrl+Shift+P", - enabled: !!getState().bookPath, - click: () => getWindow()?.webContents.send("folio:export-pdf-requested"), - }, - { - label: "Export Full Book (DOCX)…", - enabled: !!getState().bookPath, - click: () => getWindow()?.webContents.send("folio:export-docx-requested"), - }, - { - label: "Export Full Book (ODT)…", - enabled: !!getState().bookPath, - click: () => getWindow()?.webContents.send("folio:export-odt-requested"), + submenu: [ + { + label: "Markdown…", + accelerator: "CmdOrCtrl+Shift+E", + click: () => getWindow()?.webContents.send("folio:export-markdown-requested"), + }, + { + label: "Bundle (ZIP)…", + click: () => getWindow()?.webContents.send("folio:export-zip-requested"), + }, + { type: "separator" }, + { + label: "Full Book (PDF)…", + accelerator: "CmdOrCtrl+Shift+P", + click: () => getWindow()?.webContents.send("folio:export-pdf-requested"), + }, + { + label: "Full Book (DOCX)…", + click: () => getWindow()?.webContents.send("folio:export-docx-requested"), + }, + { + label: "Full Book (ODT)…", + click: () => getWindow()?.webContents.send("folio:export-odt-requested"), + }, + ], }, { type: "separator" }, { From b45368189852bcc18aa48dc2d3ab199a235723cd Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 22 Sep 2026 17:02:59 -0500 Subject: [PATCH 2/3] =?UTF-8?q?refactor(ui):=20remove=20redundant=20sideba?= =?UTF-8?q?r=20Settings=20button=20(File=20>=20Settings=E2=80=A6=20remains?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/book/settings.ts | 4 ++-- src/renderer/index.html | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/renderer/book/settings.ts b/src/renderer/book/settings.ts index 0344849..c9adad1 100644 --- a/src/renderer/book/settings.ts +++ b/src/renderer/book/settings.ts @@ -164,8 +164,8 @@ export function createSettingsFeature(ctx: BookCtx): SettingsFeature { if (e.key === "Escape" && !modal.classList.contains("hidden")) closeSettings(); }); - // Sidebar + File-menu entry points. - $("settingsBtn")?.addEventListener("click", openSettings); + // File-menu entry point (the redundant sidebar button was removed Sep 22). + $("settingCheckUpdate")?.addEventListener("click", () => hooks.checkForUpdates()); api.onSettingsRequested(() => openSettings()); // Refresh the resolved-path line whenever a book opens (the default root diff --git a/src/renderer/index.html b/src/renderer/index.html index f935365..952824a 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -30,7 +30,6 @@