FileManager: fix Plus menu override (#6957)

manage it in FM not in gestures, as  #6918 made the menu tap zone the entire width so the tap is not passed through to the gesture plugin
reviewable/pr6960/r1
yparitcher 3 years ago committed by GitHub
parent 53a7067c24
commit b0a1077756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -121,8 +121,7 @@ function FileManager:init()
padding_left = Size.padding.large,
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
callback = function() self:onShowPlusMenu() end,
}
self.path_text = TextWidget:new{

@ -4,7 +4,7 @@ local Device = require("device")
return {
gesture_fm = {
tap_top_left_corner = nil,
tap_top_right_corner = {show_plus_menu = true,},
tap_top_right_corner = nil,
tap_right_bottom_corner = nil,
tap_left_bottom_corner = Device:hasFrontlight() and {toggle_frontlight = true,} or nil,
hold_top_left_corner = nil,

@ -231,7 +231,8 @@ function Gestures:genMenu(ges)
end
function Gestures:genSubItem(ges, separator, hold_callback)
local reader_only = {tap_top_left_corner=true, hold_top_left_corner=true}
local reader_only = {tap_top_left_corner=true, hold_top_left_corner=true,
tap_top_right_corner=true,}
local enabled_func
if reader_only[ges] then
enabled_func = function() return self.ges_mode == "gesture_reader" end

Loading…
Cancel
Save