diff options
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 1a5ee4e..851ce5d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -609,10 +609,17 @@ int plugin_load(const char* plugin, void* parameter) #endif invalidate_icache(); - +#if CONFIG_BACKLIGHT + if (global_settings.backlight_in_plugins == 1) + backlight_set_timeout(1); +#endif rc = hdr->entry_point((struct plugin_api*) &rockbox_api, parameter); /* explicitly casting the pointer here to avoid touching every plugin. */ - +#if CONFIG_BACKLIGHT + if (global_settings.backlight_in_plugins == 1) + backlight_set_timeout(global_settings.backlight_timeout); +#endif + button_clear_queue(); #ifdef HAVE_LCD_BITMAP |