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

Close: #5247
This commit is contained in:
Robert
2019-08-23 19:48:55 +02:00
committed by Frans de Jonge
parent 182e981f4d
commit dc6d4085ea
2 changed files with 2 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ function FileManager:init()
padding_right = Size.padding.large,
padding_bottom = 0,
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{

View File

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