fix(logic): context creation should NOT depend on autoplay setting
CRITICAL LOGIC FIX: The autoplay setting was misunderstood. Corrected behavior: BEFORE (wrong): - Setting controls whether context is created - 'continue' = create context - 'track_only' = clear context AFTER (correct): - Context is ALWAYS created when playing from a source (album/playlist) - Stack icon ALWAYS appears - Setting only affects what happens at END of track: - 'continue' = play next track in context - 'track_only' = stop after current track Why this makes sense: - You're playing from an album = that's the context - Stack icon shows the origin (informative) - Setting controls continuation behavior (not context existence) Also: - Added logging to handleAutoplayModeChange - Will investigate why setting doesn't persist cp
This commit is contained in:
1 parent
f69a7ab461
commit
17cd6f0ae2
2 files changed
+16
-24
No files matched your search
@@ -1120,11 +1120,13 @@
|
||||
}
|
||||
|
||||
async function handleAutoplayModeChange(mode: AutoplayMode) {
|
||||
console.log('[Settings] Changing autoplay mode to:', mode);
|
||||
try {
|
||||
await setAutoplayMode(mode);
|
||||
autoplayMode = mode;
|
||||
console.log('[Settings] Autoplay mode saved successfully');
|
||||
} catch (err) {
|
||||
console.error('Failed to set autoplay mode:', err);
|
||||
console.error('[Settings] Failed to set autoplay mode:', err);
|
||||
showToast('Failed to save autoplay preference', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user