fix: romaji display race on reload; iTunes search uses original Japanese name
- Await romaji overrides before restoring player bar so disp* functions have the cache ready on first render after reload - dispArtistParts now carries originalName so artist clicks pass the Japanese name to Navidrome/iTunes search while displaying romaji Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ccdcda74ec
commit
8704a17b4f
5 files changed
+10
-10
No files matched your search
+3
-3
@@ -96,8 +96,7 @@ async function startApp() {
|
||||
if (bnav) bnav.style.display = '';
|
||||
absLoadSettingsLibraries();
|
||||
}
|
||||
loadRomajiOverrides().catch(() => {}); // fire-and-forget — cache for dispArtist/dispAlbum/dispTitle
|
||||
if (S.cfg.showRomaji) fetchRomajiIndex().catch(() => {}); // fire-and-forget — don't block navigation
|
||||
if (S.cfg.showRomaji) fetchRomajiIndex().catch(() => {});
|
||||
if(_navLoad() && S._navCursor >= 0 && S._navStack[S._navCursor]) {
|
||||
const last = S._navStack[S._navCursor];
|
||||
S._navJumping = true;
|
||||
@@ -107,7 +106,8 @@ async function startApp() {
|
||||
navigate('home');
|
||||
}
|
||||
initNotifBell();
|
||||
_restoreLastPlayed();
|
||||
// Wait for overrides before restoring player bar so disp* functions have the cache ready
|
||||
loadRomajiOverrides().catch(() => {}).then(() => { _restoreLastPlayed(); });
|
||||
if(localStorage.getItem('ns_radio')==='1') { S.radioMode=true; _applyRadioBtn(); }
|
||||
const sr = localStorage.getItem('ns_repeat');
|
||||
if(sr === 'all' || sr === 'one') S.repeat = sr;
|
||||
|
||||
Reference in new issue
Block a user