mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 04:19:36 +00:00
Changing the icon should dirty the toggle button...
...otherwise the image won't be updated, spotted by ilor.
This commit is contained in:
parent
c181daee5a
commit
93bc12cd1f
@ -129,6 +129,8 @@ void ttoggle_button::set_canvas_text()
|
||||
foreach(tcanvas& canvas, tcontrol::canvas()) {
|
||||
canvas.set_variable("icon", variant(icon_name_));
|
||||
}
|
||||
|
||||
set_dirty();
|
||||
}
|
||||
|
||||
void ttoggle_button::set_value(const bool selected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user