From 8aae18b3cce0412c4beeae6fdf95fe190df6ea25 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 21 Feb 2010 20:34:35 +0000 Subject: [PATCH] Don't be too wasteful and only reparse skins when actually needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24818 a1c6a512-1295-4272-9138-f99709370657 --- apps/menus/theme_menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index 038f9079d9..4e00fe4a56 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c @@ -162,7 +162,9 @@ static int statusbar_callback_ex(int action,const struct menu_item_ex *this_item old_bar[screen] = statusbar_position(screen); break; case ACTION_EXIT_MENUITEM: - settings_apply_skins(); + if (statusbar_position(screen) == STATUSBAR_CUSTOM + && (int)old_bar[screen] != statusbar_position(screen)) + settings_apply_skins(); break; } return ACTION_REDRAW;