diff --git a/lib/ui.ks b/lib/ui.ks index 29d81c4..b79b009 100644 --- a/lib/ui.ks +++ b/lib/ui.ks @@ -20,7 +20,7 @@ function MakeToggle { local btn is p:AddButton(l). set btn:TOGGLE to true. - set btn:onClick to f. + set btn:onToggle to f. return btn. }