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:
parent
eebde2a367
commit
be214c9445
3 changed files with 4 additions and 3 deletions
|
@ -507,6 +507,7 @@ int ft_enter(struct tree_context* c)
|
|||
splash(0, ID2P(LANG_WAIT));
|
||||
if (!settings_load_config(buf,true))
|
||||
break;
|
||||
gui_synclist_draw(&tree_lists);
|
||||
splash(HZ, ID2P(LANG_SETTINGS_LOADED));
|
||||
break;
|
||||
|
||||
|
|
|
@ -121,13 +121,12 @@ int viewportmanager_set_statusbar(int enabled)
|
|||
|
||||
void viewportmanager_draw_statusbars(void* data)
|
||||
{
|
||||
(void)data;
|
||||
int i;
|
||||
|
||||
FOR_NB_SCREENS(i)
|
||||
{
|
||||
if (showing_bars(i))
|
||||
gui_statusbar_draw(&statusbars.statusbars[i], false);
|
||||
gui_statusbar_draw(&statusbars.statusbars[i], (bool)data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
#include "filetypes.h"
|
||||
#include "option_select.h"
|
||||
#include "backdrop.h"
|
||||
|
||||
#include "appevents.h"
|
||||
#if CONFIG_TUNER
|
||||
#include "radio.h"
|
||||
#endif
|
||||
|
@ -972,6 +972,7 @@ void settings_apply(bool read_disk)
|
|||
enc_global_settings_apply();
|
||||
#endif
|
||||
list_init_viewports(NULL);
|
||||
send_event(GUI_EVENT_ACTIONUPDATE, (void*)true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue