From 15dc970f5398b7f1a113bba5d872305c4daad35e Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Fri, 10 Apr 2026 00:28:12 +0200 Subject: [PATCH] fix(audio): restore msg binding in DecodeError arm, use SlidersVertical for EQ icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Revert _msg → msg in DecodeError match arm; the variable is used in the debug_assertions eprintln! block so the underscore prefix caused a compile error - Replace SlidersHorizontal with SlidersVertical (lucide-react) in PlayerBar, LiveSearch, and AdvancedSearch so the EQ/filter icon shows vertical bars Co-Authored-By: Claude Sonnet 4.6 --- src-tauri/src/audio.rs | 2 +- src/components/LiveSearch.tsx | 4 ++-- src/components/PlayerBar.tsx | 4 ++-- src/pages/AdvancedSearch.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src-tauri/src/audio.rs b/src-tauri/src/audio.rs index efd196f9..f85cb24d 100644 --- a/src-tauri/src/audio.rs +++ b/src-tauri/src/audio.rs @@ -1149,7 +1149,7 @@ impl Iterator for SizedDecoder { self.current_frame_offset = 0; break; } - Err(symphonia::core::errors::Error::DecodeError(ref _msg)) => { + Err(symphonia::core::errors::Error::DecodeError(ref msg)) => { self.consecutive_decode_errors += 1; // Log sparingly: first drop, then every 10th to avoid spam. #[cfg(debug_assertions)] diff --git a/src/components/LiveSearch.tsx b/src/components/LiveSearch.tsx index 7efac64a..a371de2a 100644 --- a/src/components/LiveSearch.tsx +++ b/src/components/LiveSearch.tsx @@ -1,6 +1,6 @@ import React, { useState, useEffect, useRef, useCallback } from 'react'; import { useNavigate } from 'react-router-dom'; -import { Search, Disc3, Users, Music, SlidersHorizontal } from 'lucide-react'; +import { Search, Disc3, Users, Music, SlidersVertical } from 'lucide-react'; import { search, SearchResults, buildCoverArtUrl } from '../api/subsonic'; import { usePlayerStore, songToTrack } from '../store/playerStore'; import { useAuthStore } from '../store/authStore'; @@ -126,7 +126,7 @@ export default function LiveSearch() { data-tooltip-pos="bottom" aria-label={t('search.advanced')} > - + diff --git a/src/components/PlayerBar.tsx b/src/components/PlayerBar.tsx index b2677740..e21c3a26 100644 --- a/src/components/PlayerBar.tsx +++ b/src/components/PlayerBar.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useMemo, useState } from 'react'; import { createPortal } from 'react-dom'; import { Play, Pause, SkipBack, SkipForward, Volume2, VolumeX, Music, - Square, Repeat, Repeat1, Maximize2, SlidersHorizontal, X, Heart, MicVocal, Cast + Square, Repeat, Repeat1, Maximize2, SlidersVertical, X, Heart, MicVocal, Cast } from 'lucide-react'; import { usePlayerStore } from '../store/playerStore'; import { useAuthStore } from '../store/authStore'; @@ -241,7 +241,7 @@ export default function PlayerBar() { aria-label="Equalizer" data-tooltip="Equalizer" > - + {/* Volume */} diff --git a/src/pages/AdvancedSearch.tsx b/src/pages/AdvancedSearch.tsx index 1bb04ca1..dcbb82c9 100644 --- a/src/pages/AdvancedSearch.tsx +++ b/src/pages/AdvancedSearch.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import { useSearchParams, useNavigate } from 'react-router-dom'; -import { Play, SlidersHorizontal } from 'lucide-react'; +import { Play, SlidersVertical } from 'lucide-react'; import { search, getGenres, getAlbumsByGenre, getAlbumList, getRandomSongs, SubsonicGenre, SubsonicArtist, SubsonicAlbum, SubsonicSong, @@ -140,7 +140,7 @@ export default function AdvancedSearch() {

- + {t('search.advanced')}