Dispatcher: indentation

pull/7834/head
yparitcher 3 years ago committed by Martín Fernández
parent 225f9aeccb
commit 729388df81

@ -390,24 +390,24 @@ function Dispatcher:addItem(caller, menu, location, settings, section)
then then
if settingsList[k].category == "none" or settingsList[k].category == "arg" then if settingsList[k].category == "none" or settingsList[k].category == "arg" then
table.insert(menu, { table.insert(menu, {
text = settingsList[k].title, text = settingsList[k].title,
checked_func = function() checked_func = function()
return location[settings] ~= nil and location[settings][k] ~= nil return location[settings] ~= nil and location[settings][k] ~= nil
end,
callback = function(touchmenu_instance)
if location[settings] == nil then
location[settings] = {}
end
if location[settings][k] then
location[settings][k] = nil
else
location[settings][k] = true
end
caller.updated = true
if touchmenu_instance then touchmenu_instance:updateItems() end
end, end,
callback = function(touchmenu_instance) separator = settingsList[k].separator,
if location[settings] == nil then })
location[settings] = {}
end
if location[settings][k] then
location[settings][k] = nil
else
location[settings][k] = true
end
caller.updated = true
if touchmenu_instance then touchmenu_instance:updateItems() end
end,
separator = settingsList[k].separator,
})
elseif settingsList[k].category == "absolutenumber" then elseif settingsList[k].category == "absolutenumber" then
table.insert(menu, { table.insert(menu, {
text_func = function() text_func = function()

Loading…
Cancel
Save