From d2080588b9c36e171de2327a77562d23572f992d Mon Sep 17 00:00:00 2001 From: Frank Stellmacher <171614930+Psychotoxical@users.noreply.github.com> Date: Mon, 27 Apr 2026 17:37:22 +0200 Subject: [PATCH] fix(player): persist queue panel visibility + drop dead loudness binding (#336) * feat(player): persist queue panel visibility across restarts Co-Authored-By: Claude Opus 4.7 (1M context) * chore(audio): drop unused resolved_loudness_gain_db binding Co-Authored-By: Claude Opus 4.7 (1M context) --------- Co-authored-by: Claude Opus 4.7 (1M context) --- src-tauri/src/audio.rs | 1 - src/store/playerStore.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/audio.rs b/src-tauri/src/audio.rs index 93ca0ab1..a38d4f95 100644 --- a/src-tauri/src/audio.rs +++ b/src-tauri/src/audio.rs @@ -4422,7 +4422,6 @@ pub fn audio_update_replay_gain( }, ) }); - let resolved_loudness_gain_db = cache_loudness.or(loudness_gain_db); let effective_loudness_db = if norm_mode == 2 { match url_for_loudness.as_deref() { Some(_u) => loudness_gain_db_after_resolve( diff --git a/src/store/playerStore.ts b/src/store/playerStore.ts index 030a7889..a7b7490d 100644 --- a/src/store/playerStore.ts +++ b/src/store/playerStore.ts @@ -3121,6 +3121,7 @@ export const usePlayerStore = create()( currentTrack: state.currentTrack, queue: state.queue, queueIndex: state.queueIndex, + isQueueVisible: state.isQueueVisible, // currentTime is intentionally NOT persisted here. // handleAudioProgress fires every 100ms and each setState with a // persisted field triggers a full JSON serialisation of the queue to