Removed setmetatable mistake from default's ScreenFilter and ProTiming lua option rows.
This commit is contained in:
@@ -116,7 +116,7 @@ end
|
|||||||
|
|
||||||
-- screen filter
|
-- screen filter
|
||||||
function OptionRowScreenFilter()
|
function OptionRowScreenFilter()
|
||||||
local t = {
|
return {
|
||||||
Name="ScreenFilter",
|
Name="ScreenFilter",
|
||||||
LayoutType = "ShowAllInRow",
|
LayoutType = "ShowAllInRow",
|
||||||
SelectType = "SelectOne",
|
SelectType = "SelectOne",
|
||||||
@@ -147,14 +147,12 @@ function OptionRowScreenFilter()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
};
|
}
|
||||||
setmetatable(t, t)
|
|
||||||
return t
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- protiming
|
-- protiming
|
||||||
function OptionRowProTiming()
|
function OptionRowProTiming()
|
||||||
local t = {
|
return {
|
||||||
Name = "ProTiming",
|
Name = "ProTiming",
|
||||||
LayoutType = "ShowAllInRow",
|
LayoutType = "ShowAllInRow",
|
||||||
SelectType = "SelectOne",
|
SelectType = "SelectOne",
|
||||||
@@ -181,8 +179,6 @@ function OptionRowProTiming()
|
|||||||
SetUserPref("UserPrefProtiming" .. ToEnumShortString(pn), bSave)
|
SetUserPref("UserPrefProtiming" .. ToEnumShortString(pn), bSave)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
setmetatable(t, t)
|
|
||||||
return t
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[ end option rows ]]
|
--[[ end option rows ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user