fix(ui): wire active state in lists
cx
This commit is contained in:
1 parent
c59ab226b9
commit
1fae9b7d9f
4 files changed
+31
-7
No files matched your search
@@ -205,11 +205,18 @@
|
||||
|
||||
let showArtistGroupMenu = $state(false);
|
||||
let artistGroupingEnabled = $state(false);
|
||||
let customIconSrc = $derived.by(() =>
|
||||
favoritesPreferences.custom_icon_path
|
||||
? convertFileSrc(favoritesPreferences.custom_icon_path)
|
||||
: null
|
||||
);
|
||||
function resolveCustomIconSrc(path: string | null): string | null {
|
||||
if (!path) return null;
|
||||
if (path.startsWith('asset://') || path.startsWith('http://asset.localhost') || path.startsWith('https://asset.localhost')) {
|
||||
return path;
|
||||
}
|
||||
if (path.startsWith('file://')) {
|
||||
return path;
|
||||
}
|
||||
return convertFileSrc(path);
|
||||
}
|
||||
|
||||
let customIconSrc = $derived.by(() => resolveCustomIconSrc(favoritesPreferences.custom_icon_path));
|
||||
|
||||
async function scrollToTrack(trackId: number) {
|
||||
await tick();
|
||||
|
||||
Reference in new issue
Block a user