mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
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:
parent
ae4560f388
commit
ab3e71cad9
4 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue