Fix [change_theme] requiring a separate action to refresh the UI afterwards

This also makes it so the status panels are updated immediately.
This commit is contained in:
Iris Morelle 2018-05-19 23:57:04 -04:00
parent 8358ee5762
commit 84fef75235
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,9 @@
* Fixed: unit halo remained after undoing a recall (issue #3065)
* [change_theme] no longer causes a Lua error when theme= is not specified
instead of explicitly set to an empty string.
* [change_theme] no longer requires running a separate action to update the
UI afterwards (e.g. [redraw]) and the status panels are updated immediately.
as well.
## Version 1.14.1
### Campaigns

View file

@ -282,6 +282,7 @@ void display::set_theme(config theme_cfg) {
action_buttons_.clear();
create_buttons();
invalidate_theme();
redraw_everything();
}
void display::init_flags() {