aboutsummaryrefslogtreecommitdiffstats
path: root/button.lua
diff options
context:
space:
mode:
Diffstat (limited to 'button.lua')
-rw-r--r--button.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/button.lua b/button.lua
index fd0cff4..2e2b310 100644
--- a/button.lua
+++ b/button.lua
@@ -48,7 +48,7 @@ return function(w)
end
-- Generate unique identifier for gui state update and querying.
- local id = core.generateID()
+ local id = w.id or core.generateID()
-- group.getRect determines the position and size of the widget according
-- to the currently active group. Both arguments may be omitted.