diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2006-06-04 16:36:49 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2006-06-04 16:36:49 +0000 |
| commit | ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282 (patch) | |
| tree | bc68c628f64780ca48ba448757c8dccb290267e4 /apps/plugins | |
| parent | ae4560f3881e1220722072be450fe30cf688f5f9 (diff) | |
| download | rockbox-ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282.zip rockbox-ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282.tar.gz rockbox-ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282.tar.bz2 rockbox-ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282.tar.xz | |
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
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/sudoku/sudoku.c | 1 | ||||
| -rw-r--r-- | apps/plugins/text_editor.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c index 0c39c46..12924e8 100644 --- a/apps/plugins/sudoku/sudoku.c +++ b/apps/plugins/sudoku/sudoku.c @@ -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); diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index e866063..f98194b 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -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); |