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:
Christian Soffke 2026-05-27 19:07:42 +02:00
parent 6e64cb8043
commit 358c6056ef

View file

@ -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. */