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
This commit is contained in:
Thomas Martitz 2010-02-21 20:34:35 +00:00
parent 3ff2565e33
commit 8aae18b3cc

View file

@ -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;