Added reload_directory() to plugin api and modified text editor and sudoku plugins to call it when saving a new file. Fixes B#5360.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10053 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2006-06-04 16:36:49 +00:00
parent ae4560f388
commit ab3e71cad9
4 changed files with 8 additions and 1 deletions

View file

@ -689,6 +689,7 @@ bool save_sudoku(struct sudoku_state_t* state)
/* Add a blank line at end */
rb->write(fd,"\r\n",2);
rb->close(fd);
rb->reload_directory();
/* Save a copy of the saved state - so we can reload without
using the disk */
rb->memcpy(state->savedboard,state->currentboard,81);

View file

@ -223,6 +223,10 @@ void save_changes(int overwrite)
return;
}
if (!overwrite)
/* current directory may have changed */
rb->reload_directory();
rb->lcd_clear_display();
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(1);