Make format data use keys instead of indexes

This commit is contained in:
emanuele-f 2017-01-10 14:07:01 +01:00
parent 2c40fe3763
commit e48152bcf6
2 changed files with 8 additions and 8 deletions

View file

@ -27,10 +27,10 @@ local options_ctr = 0
local function prefsResolutionButtons(fmt, value)
local fmt_to_data = {
["s"] = {"Seconds", "Secs", 1},
["m"] = {"Minutes", "Mins", 60},
["h"] = {"Hours", "Hours", 3600},
["d"] = {"Days", "Days", 3600*24},
["s"] = {label="Secs", value=1},
["m"] = {label="Mins", value=60},
["h"] = {label="Hours", value=3600},
["d"] = {label="Days", value=3600*24},
}
local ctrl_id = "options_group_" .. options_ctr