summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-06-04 16:36:49 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-06-04 16:36:49 +0000
commitab3e71cad9dbc43eb407e7dc6e287efe0a4f4282 (patch)
treebc68c628f64780ca48ba448757c8dccb290267e4 /apps/plugins/text_editor.c
parentae4560f3881e1220722072be450fe30cf688f5f9 (diff)
downloadrockbox-ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282.tar.gz
rockbox-ab3e71cad9dbc43eb407e7dc6e287efe0a4f4282.zip
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/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index e86606344d..f98194b151 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -223,6 +223,10 @@ void save_changes(int overwrite)
223 return; 223 return;
224 } 224 }
225 225
226 if (!overwrite)
227 /* current directory may have changed */
228 rb->reload_directory();
229
226 rb->lcd_clear_display(); 230 rb->lcd_clear_display();
227#ifdef HAVE_ADJUSTABLE_CPU_FREQ 231#ifdef HAVE_ADJUSTABLE_CPU_FREQ
228 rb->cpu_boost(1); 232 rb->cpu_boost(1);