mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
task_database: set task title upon completion
This commit is contained in:
parent
486f438cc3
commit
90fb11cb9a
@ -1297,14 +1297,16 @@ static void task_database_handler(retro_task_t *task)
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef RARCH_INTERNAL
|
||||
task_set_progress(task, 100);
|
||||
#else
|
||||
const char *msg = NULL;
|
||||
if (db->is_directory)
|
||||
msg = msg_hash_to_str(MSG_SCANNING_OF_DIRECTORY_FINISHED);
|
||||
else
|
||||
msg = msg_hash_to_str(MSG_SCANNING_OF_FILE_FINISHED);
|
||||
#ifdef RARCH_INTERNAL
|
||||
task_free_title(task);
|
||||
task_set_title(task, strdup(msg));
|
||||
task_set_progress(task, 100);
|
||||
#else
|
||||
fprintf(stderr, "msg: %s\n", msg);
|
||||
#endif
|
||||
ui_companion_driver_notify_refresh();
|
||||
|
Loading…
x
Reference in New Issue
Block a user