diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-02-21 20:34:35 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-02-21 20:34:35 +0000 |
commit | 8aae18b3cce0412c4beeae6fdf95fe190df6ea25 (patch) | |
tree | 80125d89c861b9bb7c66637e437a9aecb8e8b4cd | |
parent | 3ff2565e33aa3b249b561d3b63db1dab8b48f413 (diff) |
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
-rw-r--r-- | apps/menus/theme_menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |