summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-07-01 23:48:30 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-07-01 23:48:30 +0000
commit5f3c0129845f30a7dc5780951fffa1699acc1e5c (patch)
tree4c6802194c5d0e1e46aecdca5bc2f4acba36205b /apps/tree.c
parentc26a0851624161741c18a9eeaf79324311e20bec (diff)
downloadrockbox-5f3c0129845f30a7dc5780951fffa1699acc1e5c.zip
rockbox-5f3c0129845f30a7dc5780951fffa1699acc1e5c.tar.gz
rockbox-5f3c0129845f30a7dc5780951fffa1699acc1e5c.tar.bz2
rockbox-5f3c0129845f30a7dc5780951fffa1699acc1e5c.tar.xz
Also fade out when stopping playback from within the browser (when configured to fade). Patch by Alistair Marshall for bug 5578
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10173 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 8013244..4556d86 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -63,6 +63,7 @@
#include "dircache.h"
#include "tagcache.h"
#include "yesno.h"
+#include "gwps-common.h"
/* gui api */
#include "list.h"
@@ -643,6 +644,8 @@ static bool dirbrowse(void)
/* Stop the music if it is playing */
if(audio_status()) {
if (!global_settings.party_mode)
+ if (global_settings.fade_on_stop)
+ fade(0);
audio_stop();
}
#if defined(CONFIG_CHARGING) && \