diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-12 11:00:39 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-12 11:00:39 +0000 |
commit | 54ec1f5f6db24ab90046b7cbab371c99e239f67e (patch) | |
tree | f028eaf16d8c6d2a5a7502dffaac499128bf1f20 /apps/tagtree.c | |
parent | 9d2929b79b22765701e9db240d967877d7f7bab8 (diff) |
Better UI response with playlist operations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index 25ac917bda..daa52646fa 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -526,7 +526,7 @@ bool show_search_progress(bool init, int count) return true; } - if (current_tick - last_tick > HZ/2) + if (current_tick - last_tick > HZ/4) { gui_syncsplash(0, true, str(LANG_PLAYLIST_SEARCH_MSG), count, #if CONFIG_KEYPAD == PLAYER_PAD @@ -538,6 +538,7 @@ bool show_search_progress(bool init, int count) if (SETTINGS_CANCEL == button_get(false)) return false; last_tick = current_tick; + yield(); } return true; @@ -993,6 +994,8 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue) if (playlist_insert_track(NULL, buf, position, queue, false) < 0) break; + + yield(); } playlist_sync(NULL); tagcache_search_finish(&tcs); @@ -1007,6 +1010,9 @@ bool tagtree_insert_selection_playlist(int position, bool queue) char buf[MAX_PATH]; int dirlevel = tc->dirlevel; + /* We need to set the table to allsubentries. */ + show_search_progress(true, 0); + dptr = tagtree_get_entry(tc, tc->selected_item); /* Insert a single track? */ @@ -1022,8 +1028,6 @@ bool tagtree_insert_selection_playlist(int position, bool queue) return true; } - /* We need to set the table to allsubentries. */ - show_search_progress(true, 0); if (dptr->newtable == navibrowse) { tagtree_enter(tc); |