static int dirs_to_scan(void) { if (folder_select(global_settings.tagcache_scan_paths, sizeof(global_settings.tagcache_scan_paths))) { static const char *lines[] = {ID2P(LANG_TAGCACHE_BUSY), ID2P(LANG_TAGCACHE_FORCE_UPDATE)}; static const struct text_message message = {lines, 2}; if (gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) tagcache_rebuild_with_splash(); } return 0; }
static int autoresume_callback(int action, const struct menu_item_ex *this_item) { (void)this_item; if (action == ACTION_EXIT_MENUITEM /* on exit */ && global_settings.autoresume_enable && !tagcache_is_usable()) { static const char *lines[] = {ID2P(LANG_TAGCACHE_BUSY), ID2P(LANG_TAGCACHE_FORCE_UPDATE)}; static const struct text_message message = {lines, 2}; if (gui_syncyesno_run(&message, NULL, NULL) == YESNO_YES) tagcache_rebuild_with_splash(); } return action; }