Fix: Unable to hold top right corner in FileManager (#5248)

Close: #5247
pull/5254/head
Robert 5 years ago committed by Frans de Jonge
parent 182e981f4d
commit dc6d4085ea

@ -104,6 +104,7 @@ function FileManager:init()
padding_right = Size.padding.large, padding_right = Size.padding.large,
padding_bottom = 0, padding_bottom = 0,
callback = nil, -- top right corner callback handled by gesture manager callback = nil, -- top right corner callback handled by gesture manager
hold_callback = nil, -- top right corner hold_callback handled by gesture manager
} }
self.path_text = TextWidget:new{ self.path_text = TextWidget:new{

@ -122,7 +122,7 @@ function IconButton:onHoldIconButton()
self:onInput(self.hold_input) self:onInput(self.hold_input)
elseif type(self.hold_input_func) == "function" then elseif type(self.hold_input_func) == "function" then
self:onInput(self.hold_input_func()) self:onInput(self.hold_input_func())
end elseif self.hold_callback == nil then return end
return true return true
end end

Loading…
Cancel
Save