diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 9a585a57e..81cf86040 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -710,6 +710,10 @@ async function handleAllowImmediateScrobblingChange(enabled: boolean) { try { await setAllowImmediateScrobbling(enabled); + // Mutually exclusive: if turning on, turn off the other + if (enabled && offlineSettings.allowAccumulatedScrobbling) { + await setAllowAccumulatedScrobbling(false); + } } catch (error) { console.error('Failed to set allow immediate scrobbling:', error); } @@ -718,6 +722,10 @@ async function handleAllowAccumulatedScrobblingChange(enabled: boolean) { try { await setAllowAccumulatedScrobbling(enabled); + // Mutually exclusive: if turning on, turn off the other + if (enabled && offlineSettings.allowImmediateScrobbling) { + await setAllowImmediateScrobbling(false); + } } catch (error) { console.error('Failed to set allow accumulated scrobbling:', error); }