Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

plugins: Disk Tidy: wait for dircache

Running Disk Tidy while the dircache is loading is a lot
slower than waiting for it to finish building first.

Typical scenarios for this would be starting Disk Tidy
immediately after booting or after unplugging from USB.

Deleting files during a dircache build also seems to easily
result in memory corruption, as evidenced by visual glitches
appearing in the theme.

Change-Id: I9250d918d916b112ffe2504a9225a0b52bcc3622

+10
+3
apps/plugin.c
··· 871 871 #endif 872 872 strstr, 873 873 sb_set_title_text, 874 + #ifdef HAVE_DIRCACHE 875 + dircache_wait, 876 + #endif 874 877 }; 875 878 876 879 static int plugin_buffer_handle;
+3
apps/plugin.h
··· 1022 1022 #endif 1023 1023 char* (*strstr)(const char *s1, const char *s2); 1024 1024 bool (*sb_set_title_text)(const char* title, enum themable_icons icon, enum screen_type screen); 1025 + #ifdef HAVE_DIRCACHE 1026 + void (*dircache_wait)(void); 1027 + #endif 1025 1028 }; 1026 1029 1027 1030 /* plugin header */
+4
apps/plugins/disktidy.c
··· 734 734 switch(rb->do_menu(&menu, &selection, NULL, false)) { 735 735 case 0: 736 736 if (tidy_types_selected()) { 737 + #ifdef HAVE_DIRCACHE 738 + rb->splash(0, ID2P(LANG_WAIT)); 739 + rb->dircache_wait(); 740 + #endif 737 741 disktidy_status = tidy_do(); 738 742 if (disktidy_status == PLUGIN_OK) 739 743 disktidy_status = display_run_stats();