From be214c944503aa250c117b527bfec5e3b01f70ee Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 8 Jun 2009 18:19:43 +0000 Subject: [PATCH] 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 --- apps/filetree.c | 1 + apps/gui/viewport.c | 3 +-- apps/settings.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/filetree.c b/apps/filetree.c index 8fd7be6da5..d4681ae2c7 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -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; diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index f8223f7af5..c5b81a76cc 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -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); } } diff --git a/apps/settings.c b/apps/settings.c index 0457f879c6..6652141f9c 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -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); }