Fix a problem that the statusbar was redrawn to late and not really in sync with the lists when changing loading a (theme) .cfg or changing the colors witht the color picker. Now both, the statusbar and the tree lists are redrawn instantly after settings_apply() (even before the "Theme loaded" splash).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21222 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-06-08 18:19:43 +00:00
parent eebde2a367
commit be214c9445
3 changed files with 4 additions and 3 deletions

View file

@ -507,6 +507,7 @@ int ft_enter(struct tree_context* c)
splash(0, ID2P(LANG_WAIT)); splash(0, ID2P(LANG_WAIT));
if (!settings_load_config(buf,true)) if (!settings_load_config(buf,true))
break; break;
gui_synclist_draw(&tree_lists);
splash(HZ, ID2P(LANG_SETTINGS_LOADED)); splash(HZ, ID2P(LANG_SETTINGS_LOADED));
break; break;

View file

@ -121,13 +121,12 @@ int viewportmanager_set_statusbar(int enabled)
void viewportmanager_draw_statusbars(void* data) void viewportmanager_draw_statusbars(void* data)
{ {
(void)data;
int i; int i;
FOR_NB_SCREENS(i) FOR_NB_SCREENS(i)
{ {
if (showing_bars(i)) if (showing_bars(i))
gui_statusbar_draw(&statusbars.statusbars[i], false); gui_statusbar_draw(&statusbars.statusbars[i], (bool)data);
} }
} }

View file

@ -66,7 +66,7 @@
#include "filetypes.h" #include "filetypes.h"
#include "option_select.h" #include "option_select.h"
#include "backdrop.h" #include "backdrop.h"
#include "appevents.h"
#if CONFIG_TUNER #if CONFIG_TUNER
#include "radio.h" #include "radio.h"
#endif #endif
@ -972,6 +972,7 @@ void settings_apply(bool read_disk)
enc_global_settings_apply(); enc_global_settings_apply();
#endif #endif
list_init_viewports(NULL); list_init_viewports(NULL);
send_event(GUI_EVENT_ACTIONUPDATE, (void*)true);
} }