fix: remove deleted local library item from provider state after file deletion

When deleting a non-CUE local library track from the metadata screen,
only the file was removed but the library database entry and provider
state were left untouched, causing the track to persist in the library UI.
Now calls removeItem() on localLibraryProvider after deleteFile().
This commit is contained in:
zarzet
2026-04-01 21:04:42 +07:00
parent f511f30ad0
commit 4dfa76b49e
4 changed files with 22 additions and 4 deletions
+3 -3
View File
@@ -4,12 +4,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SpotiFLAC Mobile - Lossless Music Downloader</title>
<meta name="description" content="Download music in true lossless FLAC from Tidal, Qobuz & Deezer. No account required. Available on Android & iOS.">
<meta name="description" content="Mobile music utility built with Flutter and Go. High-quality audio management for your personal library.">
<meta name="theme-color" content="#0a0a0a">
<!-- Open Graph -->
<meta property="og:title" content="SpotiFLAC Mobile">
<meta property="og:description" content="Download music in true lossless FLAC from Tidal, Qobuz & Deezer. No account required.">
<meta property="og:description" content="Mobile music utility built with Flutter and Go. High-quality audio management for your personal library.">
<meta property="og:image" content="icon.png">
<meta property="og:type" content="website">
@@ -404,7 +404,7 @@
<!-- HERO -->
<section class="hero">
<h1>Spoti<span>FLAC</span> Mobile</h1>
<p>Download music in true lossless FLAC from Tidal, Qobuz &amp; Deezer &mdash; no account required.</p>
<p>Mobile music utility built with Flutter and Go. High-quality audio management for your personal library.</p>
<div class="hero-badges">
<span class="badge">
<svg class="icon-svg" viewBox="0 0 24 24"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V7H6v11zM3.5 7C2.67 7 2 7.67 2 8.5v7c0 .83.67 1.5 1.5 1.5S5 16.33 5 15.5v-7C5 7.67 4.33 7 3.5 7zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48A5.84 5.84 0 0012 0c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31A5.983 5.983 0 006 6h12c0-2.21-1.2-4.15-2.97-5.18-.25-.14-.4-.24-.5-.36v-.3zM10 4H9V3h1v1zm5 0h-1V3h1v1z"/></svg>