allow specifying the default
This commit is contained in:
@@ -44,9 +44,11 @@ end
|
|||||||
OptionRowTable =
|
OptionRowTable =
|
||||||
{
|
{
|
||||||
SaveTo = nil, -- set this
|
SaveTo = nil, -- set this
|
||||||
|
Default = nil, -- set this
|
||||||
|
|
||||||
LoadSelections = function(self, list, pn)
|
LoadSelections = function(self, list, pn)
|
||||||
local Sort = PROFILEMAN:GetMachineProfile():GetSaved()[self.Name]
|
local Sort = PROFILEMAN:GetMachineProfile():GetSaved()[self.Name]
|
||||||
|
or self.Default
|
||||||
-- Find the index of the current sort.
|
-- Find the index of the current sort.
|
||||||
local Index = FindValue(self.RawChoices, Sort) or 1
|
local Index = FindValue(self.RawChoices, Sort) or 1
|
||||||
list[Index] = true
|
list[Index] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user