SVGHMI: fix ToggleButton not always reflecting current state
authorEdouard Tisserant
Fri, 09 Sep 2022 09:45:27 +0200
changeset 3599 0d7c41546854
parent 3598 13677d093946
child 3600 c9ecf7d50888
SVGHMI: fix ToggleButton not always reflecting current state
svghmi/widget_tooglebutton.ysl2
--- a/svghmi/widget_tooglebutton.ysl2	Fri Sep 09 09:44:03 2022 +0200
+++ b/svghmi/widget_tooglebutton.ysl2	Fri Sep 09 09:45:27 2022 +0200
@@ -22,7 +22,7 @@
         inactive_style = undefined;
 
         dispatch(value) {
-            this.actvity_state = Boolean(value);
+            this.activity_state = Boolean(value);
             //redraw toggle button
             this.request_animate();
         }