From 2b2ebb8cd596446b635f2deacb66ec85a7a90213 Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Sun, 2 Mar 2025 14:23:51 -0500 Subject: [PATCH] Prevent shuffling song lists with 0 or 1 songs --- templates/song-list.html | 2 ++ todo.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/song-list.html b/templates/song-list.html index d135fc7..19784a4 100644 --- a/templates/song-list.html +++ b/templates/song-list.html @@ -1,9 +1,11 @@ {% from "song-macros.html" import song_info, song_details %}
+ {% if songs|length > 1 %}
+ {% endif %}
{% for song in songs %} diff --git a/todo.txt b/todo.txt index 2177b71..66208ad 100644 --- a/todo.txt +++ b/todo.txt @@ -1,5 +1,4 @@ NOW -- Hide shuffle button for song lists with 1 song or fewer - Pinned profile playlists - Player minimize button -- 2.39.5