Changing the icon should dirty the toggle button...

...otherwise the image won't be updated, spotted by ilor.
This commit is contained in:
Mark de Wever 2008-08-13 06:12:25 +00:00
parent c181daee5a
commit 93bc12cd1f

View File

@ -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)