Reset on album end

This commit is contained in:
Chandler Swift 2026-02-18 20:36:39 -06:00
parent 0614fa1460
commit 31d0bddc38
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -67,6 +67,9 @@ function App() {
if ((album?.tracks?.length ?? 0) > nowPlaying + 1) { // if there's a next track
play(nowPlaying + 1);
setPaused(false);
} else {
setAlbum(null);
setDisplayText(WELCOME_TEXT); // Either I could always be diligent about resetting it elsewhere…or I can just do it here!
}
};