diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/sort.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/apps/plugins/sort.c b/apps/plugins/sort.c index c8927081e9..9559b25497 100644 --- a/apps/plugins/sort.c +++ b/apps/plugins/sort.c | |||
@@ -189,18 +189,35 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
189 | stringbuffer = buf; | 189 | stringbuffer = buf; |
190 | pointers = (char **)(buf + buf_size - sizeof(int)); | 190 | pointers = (char **)(buf + buf_size - sizeof(int)); |
191 | 191 | ||
192 | rb->lcd_clear_display(); | ||
193 | rb->splash(0, true, "Loading..."); | ||
194 | |||
192 | rc = read_buffer(0); | 195 | rc = read_buffer(0); |
193 | if(rc == 0) { | 196 | if(rc == 0) { |
197 | rb->lcd_clear_display(); | ||
198 | rb->splash(0, true, "Sorting..."); | ||
199 | sort_buffer(); | ||
200 | |||
201 | rb->lcd_clear_display(); | ||
202 | rb->splash(0, true, "Writing..."); | ||
194 | sort_buffer(); | 203 | sort_buffer(); |
204 | |||
195 | rc = write_file(); | 205 | rc = write_file(); |
196 | if(rc < 0) { | 206 | if(rc < 0) { |
207 | rb->lcd_clear_display(); | ||
197 | rb->splash(HZ, true, "Can't write file: %d", rc); | 208 | rb->splash(HZ, true, "Can't write file: %d", rc); |
209 | } else { | ||
210 | rb->lcd_clear_display(); | ||
211 | rb->splash(HZ, true, "Done"); | ||
198 | } | 212 | } |
199 | } else { | 213 | } else { |
200 | if(rc < 0) | 214 | if(rc < 0) { |
215 | rb->lcd_clear_display(); | ||
201 | rb->splash(HZ, true, "Can't read file: %d", rc); | 216 | rb->splash(HZ, true, "Can't read file: %d", rc); |
202 | else | 217 | } else { |
218 | rb->lcd_clear_display(); | ||
203 | rb->splash(HZ, true, "The file is too big"); | 219 | rb->splash(HZ, true, "The file is too big"); |
220 | } | ||
204 | } | 221 | } |
205 | 222 | ||
206 | return PLUGIN_OK; | 223 | return PLUGIN_OK; |