Use the clear action to stop the internet radio

master
François-Xavier Thomas 6 years ago
parent 19082afc11
commit 86510a4d42
  1. 2
      airsonic-main/src/main/java/org/airsonic/player/domain/PlayQueue.java
  2. 1
      airsonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp

@ -226,6 +226,8 @@ public class PlayQueue {
public synchronized void clear() { public synchronized void clear() {
makeBackup(); makeBackup();
files.clear(); files.clear();
setRandomSearchCriteria(null);
setInternetRadio(null);
index = 0; index = 0;
} }

@ -504,7 +504,6 @@
$("select#moreActions #removeSelected").prop("disabled", internetRadioEnabled); $("select#moreActions #removeSelected").prop("disabled", internetRadioEnabled);
$("select#moreActions #download").prop("disabled", internetRadioEnabled); $("select#moreActions #download").prop("disabled", internetRadioEnabled);
$("select#moreActions #appendPlaylist").prop("disabled", internetRadioEnabled); $("select#moreActions #appendPlaylist").prop("disabled", internetRadioEnabled);
$("#clearQueue").toggleLink(!internetRadioEnabled);
$("#shuffleQueue").toggleLink(!internetRadioEnabled); $("#shuffleQueue").toggleLink(!internetRadioEnabled);
$("#repeatQueue").toggleLink(!internetRadioEnabled); $("#repeatQueue").toggleLink(!internetRadioEnabled);
$("#undoQueue").toggleLink(!internetRadioEnabled); $("#undoQueue").toggleLink(!internetRadioEnabled);

Loading…
Cancel
Save