()
| 2164 | } |
| 2165 | |
| 2166 | function wireSettingsMenu() { |
| 2167 | const btn = document.getElementById("settingsBtn"); |
| 2168 | if (!btn || btn.dataset.menuReady === "1") return; |
| 2169 | btn.dataset.menuReady = "1"; |
| 2170 | // The only setting today is the library, so Settings opens the Edit Library |
| 2171 | // window directly (a centered modal, like the About dialog). |
| 2172 | btn.addEventListener("click", openLibraryEditor); |
| 2173 | } |
| 2174 | |
| 2175 | export async function initCatalog() { |
| 2176 | await loadState(); |