Skip to content

Commit

Permalink
Merge pull request #4996 from robob27/fix-panel-ref
Browse files Browse the repository at this point in the history
Fix DOUBLE_CLICK_MS reference
  • Loading branch information
myk002 authored Oct 9, 2024
2 parents ea4b174 + f1261e0 commit 6b61997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/lua/gui/widgets/list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ local common = require('gui.widgets.common')
local Widget = require('gui.widgets.widget')
local Scrollbar = require('gui.widgets.scrollbar')
local Label = require('gui.widgets.labels.label')
local Panel = require('gui.widgets.containers.panel')

local getval = utils.getval
local to_pen = dfhack.pen.parse
Expand Down Expand Up @@ -341,7 +340,7 @@ function List:onInput(keys)
if idx ~= self:getSelected() then
self.last_select_click_ms = now_ms
else
if now_ms - self.last_select_click_ms <= Panel.DOUBLE_CLICK_MS then
if now_ms - self.last_select_click_ms <= common.DOUBLE_CLICK_MS then
self.last_select_click_ms = 0
if self:double_click() then return true end
else
Expand Down

0 comments on commit 6b61997

Please sign in to comment.