refactor(ui): remove redundant sidebar Settings button (File > Settings… remains)

This commit is contained in:
avi 2026-09-22 17:02:59 -05:00
commit b453681898
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -30,7 +30,6 @@
</div>
<div class="sidebar-footer">
<button class="button button-ghost" id="searchBtn" title="Search all chapters (Ctrl+F)">Search</button>
<button class="button button-ghost" id="settingsBtn" title="Settings (autosave, backups)">Settings</button>
<div class="theme-control">
<label class="theme-label" for="themeSelect">Theme</label>
<select id="themeSelect" class="theme-select" title="Interface theme">
@ -57,8 +56,6 @@
<div class="welcome-actions">
<button class="button" id="welcomeNewBook">New</button>
<button class="button button-ghost" id="welcomeOpenBook">Open</button>
<button class="button button-ghost" id="welcomeOpenMd" title="Open a Markdown or text file as a new book">Open file</button>
<button class="button button-ghost" id="welcomeUpdate" title="Check for a new version of Folio">Update</button>
</div>
<div class="recents-block">
<div class="recents-title">Recent</div>
@ -351,6 +348,10 @@
</div>
<p class="setting-meta" id="settingResolved"></p>
<p class="setting-meta" id="settingLastSnap"></p>
<div class="update-control">
<span class="backup-label">Updates</span>
<button type="button" class="button button-ghost" id="settingCheckUpdate" title="Check for a new version of Folio">Check now</button>
</div>
<div class="modal-actions">
<button class="button button-ghost" id="settingSnapNow" title="Take a snapshot right now">Snapshot now</button>
<button class="button" id="settingsClose">Close</button>