diff options
Diffstat (limited to 'apps/open_plugin.c')
-rw-r--r-- | apps/open_plugin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/open_plugin.c b/apps/open_plugin.c index d16502ecbe..f7f55d58cd 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c | |||
@@ -374,6 +374,15 @@ int open_plugin_run(const char *key) | |||
374 | void open_plugin_cache_flush(void) | 374 | void open_plugin_cache_flush(void) |
375 | { | 375 | { |
376 | logf("OP *cache flush*"); | 376 | logf("OP *cache flush*"); |
377 | /* start_in_screen == 0 is 'Previous Screen' it is actually | ||
378 | * defined as (GO_TO_PREVIOUS = -2) + 2 for *Legacy?* reasons AFAICT */ | ||
379 | if (global_settings.start_in_screen == 0 && | ||
380 | global_status.last_screen == GO_TO_PLUGIN && | ||
381 | open_plugin_entry.lang_id > OPEN_PLUGIN_LANG_INVALID) | ||
382 | { | ||
383 | /* flush the last item as LANG_PREVIOUS_SCREEN if the user wants to resume */ | ||
384 | open_plugin_entry.lang_id = LANG_PREVIOUS_SCREEN; | ||
385 | } | ||
377 | op_update_dat(&open_plugin_entry, true); | 386 | op_update_dat(&open_plugin_entry, true); |
378 | } | 387 | } |
379 | 388 | ||