diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index d66cccbc85..92df51dbac 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -783,15 +783,14 @@ int plugin_load(const char* plugin, const void* parameter) | |||
783 | oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); | 783 | oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); |
784 | 784 | ||
785 | #ifdef HAVE_TOUCHSCREEN | 785 | #ifdef HAVE_TOUCHSCREEN |
786 | enum touchscreen_mode old_mode = touchscreen_get_mode(); | ||
787 | |||
788 | touchscreen_set_mode(TOUCHSCREEN_BUTTON); | 786 | touchscreen_set_mode(TOUCHSCREEN_BUTTON); |
789 | #endif | 787 | #endif |
790 | 788 | ||
791 | rc = hdr->entry_point(parameter); | 789 | rc = hdr->entry_point(parameter); |
792 | 790 | ||
791 | /* Go back to the global setting in case the plugin changed it */ | ||
793 | #ifdef HAVE_TOUCHSCREEN | 792 | #ifdef HAVE_TOUCHSCREEN |
794 | touchscreen_set_mode(old_mode); | 793 | touchscreen_set_mode(global_settings.touch_mode); |
795 | #endif | 794 | #endif |
796 | 795 | ||
797 | viewportmanager_set_statusbar(oldbars); | 796 | viewportmanager_set_statusbar(oldbars); |