summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index a2059266b2..77fb925ba2 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -802,8 +802,6 @@ int plugin_load(const char* plugin, const void* parameter)
802#ifdef HAVE_TOUCHSCREEN 802#ifdef HAVE_TOUCHSCREEN
803 touchscreen_set_mode(global_settings.touch_mode); 803 touchscreen_set_mode(global_settings.touch_mode);
804#endif 804#endif
805
806 viewportmanager_set_statusbar(oldbars);
807 805
808 button_clear_queue(); 806 button_clear_queue();
809 807
@@ -832,13 +830,14 @@ int plugin_load(const char* plugin, const void* parameter)
832#endif 830#endif
833#endif 831#endif
834 832
833 viewportmanager_set_statusbar(oldbars);
834 viewport_set_current_vp(NULL);
835
835 if (rc != PLUGIN_GOTO_WPS) 836 if (rc != PLUGIN_GOTO_WPS)
836 { 837 {
837 send_event(GUI_EVENT_REFRESH, NULL); 838 send_event(GUI_EVENT_REFRESH, NULL);
838 } 839 }
839 840
840 viewportmanager_set_statusbar(oldbars);
841 viewport_set_current_vp(NULL);
842 if (pfn_tsr_exit == NULL) 841 if (pfn_tsr_exit == NULL)
843 plugin_loaded = false; 842 plugin_loaded = false;
844 843