summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2007-05-20 10:04:39 +0000
committerDan Everton <dan@iocaine.org>2007-05-20 10:04:39 +0000
commit4c486ce948d0654028085dcbc467f4f04ce18db1 (patch)
tree49e888e2c487d9c8ef3fe15effddabe7adfff803 /apps/onplay.c
parent0434d56a0dd75ab0c4a8a100853ebb2809776d49 (diff)
downloadrockbox-4c486ce948d0654028085dcbc467f4f04ce18db1.tar.gz
rockbox-4c486ce948d0654028085dcbc467f4f04ce18db1.zip
Add splash messages while copying, moving, and deleting files. Also boost the CPU during move/copy since it seems to make things faster.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13441 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index ef8ca9f157..d1098b7719 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -529,8 +529,12 @@ static bool delete_handler(bool is_dir)
529 529
530 struct text_message message={lines, 2}; 530 struct text_message message={lines, 2};
531 struct text_message yes_message={yes_lines, 2}; 531 struct text_message yes_message={yes_lines, 2};
532
532 if(gui_syncyesno_run(&message, &yes_message, NULL)!=YESNO_YES) 533 if(gui_syncyesno_run(&message, &yes_message, NULL)!=YESNO_YES)
533 return false; 534 return false;
535
536 gui_syncsplash(0, str(LANG_DELETING));
537
534 int res; 538 int res;
535 if (is_dir) 539 if (is_dir)
536 { 540 {
@@ -870,7 +874,16 @@ static bool clipboard_paste(void)
870 return false; 874 return false;
871 } 875 }
872 876
877 if (clipboard_is_copy) {
878 gui_syncsplash(0, str(LANG_COPYING));
879 }
880 else
881 {
882 gui_syncsplash(0, str(LANG_MOVING));
883 }
884
873 /* Now figure out what we're doing */ 885 /* Now figure out what we're doing */
886 cpu_boost(true);
874 if (clipboard_selection_attr & ATTR_DIRECTORY) { 887 if (clipboard_selection_attr & ATTR_DIRECTORY) {
875 /* Recursion. Set up external stack */ 888 /* Recursion. Set up external stack */
876 char srcpath[MAX_PATH]; 889 char srcpath[MAX_PATH];
@@ -893,6 +906,7 @@ static bool clipboard_paste(void)
893 success = clipboard_pastefile(clipboard_selection, target, 906 success = clipboard_pastefile(clipboard_selection, target,
894 clipboard_is_copy); 907 clipboard_is_copy);
895 } 908 }
909 cpu_boost(false);
896 910
897 /* Did it work? */ 911 /* Did it work? */
898 if (success) { 912 if (success) {