diff --git a/examples/menus/options/widgets.lua b/examples/menus/options/widgets.lua index 738918f..f7aa2d5 100644 --- a/examples/menus/options/widgets.lua +++ b/examples/menus/options/widgets.lua @@ -140,8 +140,8 @@ end function widgets.Switch:action() self:modifyKey() self.label2 = self:getLabel() - self.needRedraw = true core.options:write() + self:invalidateCanvas() end