aboutsummaryrefslogtreecommitdiffstats
path: root/checkbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'checkbox.lua')
-rw-r--r--checkbox.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkbox.lua b/checkbox.lua
index 14a92a5..5137bb0 100644
--- a/checkbox.lua
+++ b/checkbox.lua
@@ -48,7 +48,7 @@ return function(w)
w.size[1] = w.size[1] + bw + 4
end
- local id = core.generateID()
+ local id = w.id or core.generateID()
local pos, size = group.getRect(w.pos, w.size)
mouse.updateWidget(id, pos, size, w.widgetHit)