summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/filetree.c')
-rw-r--r--apps/filetree.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index b8f066745f..846e707112 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -344,6 +344,11 @@ int ft_enter(struct tree_context* c)
344 gui_syncsplash(0, true, str(LANG_WAIT)); 344 gui_syncsplash(0, true, str(LANG_WAIT));
345 switch ( file->attr & TREE_ATTR_MASK ) { 345 switch ( file->attr & TREE_ATTR_MASK ) {
346 case TREE_ATTR_M3U: 346 case TREE_ATTR_M3U:
347 if (global_settings.party_mode) {
348 gui_syncsplash(HZ, true, str(LANG_PARTY_MODE));
349 break;
350 }
351
347 if (bookmark_autoload(buf)) 352 if (bookmark_autoload(buf))
348 break; 353 break;
349 354
@@ -385,7 +390,12 @@ int ft_enter(struct tree_context* c)
385 break; 390 break;
386 } 391 }
387 392
388 if (playlist_create(c->currdir, NULL) != -1) 393 if (global_settings.party_mode) {
394 playlist_insert_track(NULL, buf,
395 PLAYLIST_INSERT_LAST, true);
396 gui_syncsplash(HZ, true, str(LANG_INSERT_LAST));
397 }
398 else if (playlist_create(c->currdir, NULL) != -1)
389 { 399 {
390 start_index = ft_build_playlist(c, c->selected_item); 400 start_index = ft_build_playlist(c, c->selected_item);
391 if (global_settings.playlist_shuffle) 401 if (global_settings.playlist_shuffle)
@@ -462,6 +472,11 @@ int ft_enter(struct tree_context* c)
462 472
463 /* plugin file */ 473 /* plugin file */
464 case TREE_ATTR_ROCK: 474 case TREE_ATTR_ROCK:
475 if (global_settings.party_mode) {
476 gui_syncsplash(HZ, true, str(LANG_PARTY_MODE));
477 break;
478 }
479
465 if (plugin_load(buf,NULL) == PLUGIN_USB_CONNECTED) 480 if (plugin_load(buf,NULL) == PLUGIN_USB_CONNECTED)
466 { 481 {
467 if(*c->dirfilter > NUM_FILTER_MODES) 482 if(*c->dirfilter > NUM_FILTER_MODES)
@@ -475,7 +490,14 @@ int ft_enter(struct tree_context* c)
475 490
476 default: 491 default:
477 { 492 {
478 char* plugin = filetype_get_plugin(file); 493 char* plugin;
494
495 if (global_settings.party_mode) {
496 gui_syncsplash(HZ, true, str(LANG_PARTY_MODE));
497 break;
498 }
499
500 plugin = filetype_get_plugin(file);
479 if (plugin) 501 if (plugin)
480 { 502 {
481 if (plugin_load(plugin,buf) == PLUGIN_USB_CONNECTED) 503 if (plugin_load(plugin,buf) == PLUGIN_USB_CONNECTED)