forked from len0rd/rockbox
Warn before erasing dynamic playlist from tagcache.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10495 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e72820f5e2
commit
29b9146aa7
1 changed files with 14 additions and 0 deletions
|
|
@ -40,6 +40,7 @@
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "atoi.h"
|
#include "atoi.h"
|
||||||
#include "playback.h"
|
#include "playback.h"
|
||||||
|
#include "yesno.h"
|
||||||
|
|
||||||
#define FILE_SEARCH_INSTRUCTIONS ROCKBOX_DIR "/tagnavi.config"
|
#define FILE_SEARCH_INSTRUCTIONS ROCKBOX_DIR "/tagnavi.config"
|
||||||
|
|
||||||
|
|
@ -883,6 +884,19 @@ int tagtree_enter(struct tree_context* c)
|
||||||
if (newextra == playtrack)
|
if (newextra == playtrack)
|
||||||
{
|
{
|
||||||
c->dirlevel--;
|
c->dirlevel--;
|
||||||
|
/* about to create a new current playlist...
|
||||||
|
allow user to cancel the operation */
|
||||||
|
if (global_settings.warnon_erase_dynplaylist &&
|
||||||
|
!global_settings.party_mode &&
|
||||||
|
playlist_modified(NULL))
|
||||||
|
{
|
||||||
|
char *lines[]={str(LANG_WARN_ERASEDYNPLAYLIST_PROMPT)};
|
||||||
|
struct text_message message={lines, 1};
|
||||||
|
|
||||||
|
if (gui_syncyesno_run(&message, NULL, NULL) != YESNO_YES)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (tagtree_play_folder(c) >= 0)
|
if (tagtree_play_folder(c) >= 0)
|
||||||
rc = 2;
|
rc = 2;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue