fix: improve tooltip UX and enforce mutual exclusion on load

Tooltip improvements:
- Consolidate duplicate tooltips into single unified tooltip
- Show device info + DAC status + sample rate in one place
- Remove native 'title' attributes that were causing conflicts
- Add visual indicators (colored dots) for setting states
- Display resampling warning with actual rates when detected
- Better structured tooltip with sections

Mutual exclusion enforcement:
- Validate settings on load in loadAudioSettings()
- Auto-disable Gapless and Crossfade if DAC Passthrough is enabled
- Prevents invalid state from persisted settings

This fixes the issue where users could have incompatible settings
active simultaneously after app restart.
This commit is contained in:
vicrodh committed 2026-01-16 21:39:48 -06:00
1 parent a95575b7df
commit 40cd6d7303
2 files changed
+103 -12

No files matched your search

@@ -795,6 +795,18 @@
}
exclusiveMode = settings.exclusive_mode;
dacPassthrough = settings.dac_passthrough;
// Validate mutual exclusion: DAC Passthrough disables Gapless + Crossfade
if (dacPassthrough) {
if (gaplessPlayback) {
console.warn('DAC Passthrough and Gapless both enabled - disabling Gapless');
gaplessPlayback = false;
}
if (crossfade > 0) {
console.warn('DAC Passthrough and Crossfade both enabled - disabling Crossfade');
crossfade = 0;
}
}
} catch (err) {
console.error('Failed to load audio settings:', err);
}