diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index cc208e7500..03497208b1 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -230,7 +230,6 @@ static const struct plugin_api rockbox_api = { | |||
230 | lcd_remote_bitmap, | 230 | lcd_remote_bitmap, |
231 | #endif | 231 | #endif |
232 | viewport_set_defaults, | 232 | viewport_set_defaults, |
233 | viewportmanager_set_statusbar, | ||
234 | 233 | ||
235 | /* list */ | 234 | /* list */ |
236 | gui_synclist_init, | 235 | gui_synclist_init, |
@@ -680,8 +679,7 @@ static const struct plugin_api rockbox_api = { | |||
680 | 679 | ||
681 | int plugin_load(const char* plugin, const void* parameter) | 680 | int plugin_load(const char* plugin, const void* parameter) |
682 | { | 681 | { |
683 | int rc; | 682 | int rc, i; |
684 | int oldbars; | ||
685 | struct plugin_header *hdr; | 683 | struct plugin_header *hdr; |
686 | #ifdef SIMULATOR | 684 | #ifdef SIMULATOR |
687 | void *pd; | 685 | void *pd; |
@@ -787,7 +785,8 @@ int plugin_load(const char* plugin, const void* parameter) | |||
787 | lcd_remote_update(); | 785 | lcd_remote_update(); |
788 | #endif | 786 | #endif |
789 | 787 | ||
790 | oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); | 788 | FOR_NB_SCREENS(i) |
789 | viewportmanager_theme_enable(i, false, NULL); | ||
791 | 790 | ||
792 | cpucache_invalidate(); | 791 | cpucache_invalidate(); |
793 | 792 | ||
@@ -834,12 +833,8 @@ int plugin_load(const char* plugin, const void* parameter) | |||
834 | #endif | 833 | #endif |
835 | #endif | 834 | #endif |
836 | 835 | ||
837 | viewportmanager_set_statusbar(oldbars); | 836 | FOR_NB_SCREENS(i) |
838 | 837 | viewportmanager_theme_undo(i); | |
839 | if (rc != PLUGIN_GOTO_WPS) | ||
840 | { | ||
841 | send_event(GUI_EVENT_REFRESH, NULL); | ||
842 | } | ||
843 | 838 | ||
844 | if (pfn_tsr_exit == NULL) | 839 | if (pfn_tsr_exit == NULL) |
845 | plugin_loaded = false; | 840 | plugin_loaded = false; |