summaryrefslogtreecommitdiff
path: root/apps/plugins/random_folder_advance_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/random_folder_advance_config.c')
-rw-r--r--apps/plugins/random_folder_advance_config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c
index 2d3959ac1f..28546a340c 100644
--- a/apps/plugins/random_folder_advance_config.c
+++ b/apps/plugins/random_folder_advance_config.c
@@ -537,6 +537,7 @@ int start_shuffled_play(void)
537 537
538enum plugin_status main_menu(void) 538enum plugin_status main_menu(void)
539{ 539{
540 bool exit = false;
540 MENUITEM_STRINGLIST(menu, "Main Menu", NULL, 541 MENUITEM_STRINGLIST(menu, "Main Menu", NULL,
541 "Generate Folder List", 542 "Generate Folder List",
542 "Edit Folder List", 543 "Edit Folder List",
@@ -545,7 +546,7 @@ enum plugin_status main_menu(void)
545 "Play Shuffled", 546 "Play Shuffled",
546 "Quit"); 547 "Quit");
547 548
548 while (true) 549 while (!exit)
549 { 550 {
550 switch (rb->do_menu(&menu, NULL, NULL, false)) 551 switch (rb->do_menu(&menu, NULL, NULL, false))
551 { 552 {
@@ -567,7 +568,7 @@ enum plugin_status main_menu(void)
567 rb->cpu_boost(true); 568 rb->cpu_boost(true);
568#endif 569#endif
569 if (edit_list() < 0) 570 if (edit_list() < 0)
570 return PLUGIN_OK; 571 exit = true;
571#ifdef HAVE_ADJUSTABLE_CPU_FREQ 572#ifdef HAVE_ADJUSTABLE_CPU_FREQ
572 rb->cpu_boost(false); 573 rb->cpu_boost(false);
573#endif 574#endif
@@ -611,6 +612,7 @@ enum plugin_status main_menu(void)
611 return PLUGIN_OK; 612 return PLUGIN_OK;
612 } 613 }
613 } 614 }
615 return PLUGIN_OK;
614} 616}
615 617
616enum plugin_status plugin_start(const void* parameter) 618enum plugin_status plugin_start(const void* parameter)