From 7a116b91017afbc66b0ef1909633e835dd3cfdab Mon Sep 17 00:00:00 2001 From: William Toohey Date: Mon, 3 Jul 2017 14:02:37 +1000 Subject: [PATCH] Fix #25 --- src/js/HuesCore.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/HuesCore.js b/src/js/HuesCore.js index fe63bcb..8e1d6e8 100644 --- a/src/js/HuesCore.js +++ b/src/js/HuesCore.js @@ -624,6 +624,9 @@ class HuesCore { doAutoSong() { let func = null; + if(this.resourceManager.enabledSongs.length < 2) { + return; // don't move if there's nothing to move to + } if(localStorage["autoSongShuffle"] == "on") { func = this.randomSong; } else {