Skip to content

Commit f1261e0

Browse files
committed
Fix DOUBLE_CLICK_MS reference
1 parent ea4b174 commit f1261e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/lua/gui/widgets/list.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ local common = require('gui.widgets.common')
44
local Widget = require('gui.widgets.widget')
55
local Scrollbar = require('gui.widgets.scrollbar')
66
local Label = require('gui.widgets.labels.label')
7-
local Panel = require('gui.widgets.containers.panel')
87

98
local getval = utils.getval
109
local to_pen = dfhack.pen.parse
@@ -341,7 +340,7 @@ function List:onInput(keys)
341340
if idx ~= self:getSelected() then
342341
self.last_select_click_ms = now_ms
343342
else
344-
if now_ms - self.last_select_click_ms <= Panel.DOUBLE_CLICK_MS then
343+
if now_ms - self.last_select_click_ms <= common.DOUBLE_CLICK_MS then
345344
self.last_select_click_ms = 0
346345
if self:double_click() then return true end
347346
else

0 commit comments

Comments
 (0)