forked from len0rd/rockbox
Commit tagcache in background when possible (at least dircache enabled).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9686 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
caec58bc0f
commit
3b31346103
8 changed files with 165 additions and 47 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include "version.h"
|
||||
#include "font.h"
|
||||
#include "splash.h"
|
||||
#include "tagcache.h"
|
||||
#ifdef HAVE_MMC
|
||||
#include "ata_mmc.h"
|
||||
#endif
|
||||
|
|
@ -487,6 +488,13 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter)
|
|||
(void)parameter;
|
||||
exit(0);
|
||||
#else
|
||||
if (tagcache_get_commit_step() > 0)
|
||||
{
|
||||
cancel_shutdown();
|
||||
gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY));
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined(HAVE_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||
if(!charger_inserted())
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue