From 83d455e23e7b60383cbed6b7fa35ccbd02156690 Mon Sep 17 00:00:00 2001 From: ketmar Date: Wed, 15 Mar 2017 11:24:16 +0000 Subject: [PATCH] more fixes FossilOrigin-Name: 67ae229e4ea2f6afd031343d5b2d0dc3ea71398ebcd7d583efd4e7829cb1a7b0 --- amper.d | 4 ++-- amperskin.d | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/amper.d b/amper.d index d469b39..e73e799 100644 --- a/amper.d +++ b/amper.d @@ -161,7 +161,7 @@ void createCtlWindow () { glconCtlWindow.addEventListener((EventFileComplete evt) { //glconCtlWindow.close(); - concmd("song_next"); + concmd("song_next tan"); }); } @@ -387,7 +387,7 @@ void main (string[] args) { })("song_play_by_index", "play song from playlist by index"); conRegFunc!((){ if (!sdampwin.closed) ampPList.playPrevSong(); })("song_prev", "play previous song"); - conRegFunc!((){ if (!sdampwin.closed) ampPList.playNextSong(); })("song_next", "play next song"); + conRegFunc!((bool forceplay){ if (!sdampwin.closed) ampPList.playNextSong(forceplay); })("song_next", "play next song"); conRegFunc!((){ if (!sdampwin.closed) ampPList.playCurrentSong(); })("song_play", "play current song"); conRegFunc!((){ aplayStopFile(); })("song_stop", "stop current song"); conRegFunc!((){ aplayTogglePause(); })("song_pause_toggle", "pause/unpause current song"); diff --git a/amperskin.d b/amperskin.d index c12f4e0..3626cc2 100644 --- a/amperskin.d +++ b/amperskin.d @@ -857,7 +857,7 @@ public: concmdf!"song_play_by_index %d"(state.curitem); } - void playNextSong () { + void playNextSong (bool forceplay=false) { scope(exit) glconPostScreenRebuild(); if (state.items.length == 0) { concmd("song_stop"); return; } if (modeShuffle) { @@ -878,7 +878,7 @@ public: state.curitem = next; } normTop(); - concmdf!"song_play_by_index %d"(state.curitem); + concmdf!"song_play_by_index %d %s"(state.curitem, (forceplay ? "tan" :"")); } void playCurrentSong () { -- 2.11.4.GIT