mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
gui: skinned list: always set cfg to NULL when toggling theme
Takes care of disabling scroll bars when the current activity doesn't change, but the theme is toggled. Applies to confirmation prompts, for example. Since we're updating the skin immediately afterwards, the cfg will be reset as needed. Change-Id: I8a62b6b4ad0abf5176ab6b3e39281021108cb59f
This commit is contained in:
parent
6e64cb8043
commit
358c6056ef
1 changed files with 1 additions and 1 deletions
|
|
@ -113,6 +113,7 @@ static void toggle_theme(enum screen_type screen, bool force)
|
|||
if (!sb_get_persistent_title(i))
|
||||
sb_set_title_text(NULL, Icon_NOICON, i);
|
||||
}
|
||||
skinlist_set_cfg(screen, NULL);
|
||||
toggle_events(enable_event);
|
||||
|
||||
if (is_theme_enabled(screen))
|
||||
|
|
@ -163,7 +164,6 @@ static void toggle_theme(enum screen_type screen, bool force)
|
|||
screens[screen].backdrop_show(NULL);
|
||||
#endif
|
||||
screens[screen].scroll_stop();
|
||||
skinlist_set_cfg(screen, NULL);
|
||||
skin_is_dirty(screen); /* remove dirty flag */
|
||||
}
|
||||
/* let list initialize viewport in case viewport dimensions is changed. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue