Preserve preference list order
This commit is contained in:
parent
c16ee3138c
commit
e76e068953
|
@ -20,7 +20,7 @@ type
|
|||
placeholder*: string
|
||||
|
||||
# TODO: write DSL to simplify this
|
||||
const prefList*: Table[string, seq[Pref]] = {
|
||||
const prefList*: OrderedTable[string, seq[Pref]] = {
|
||||
"Privacy": @[
|
||||
Pref(kind: input, name: "replaceTwitter",
|
||||
label: "Replace Twitter links with Nitter (blank to disable)",
|
||||
|
@ -64,7 +64,7 @@ const prefList*: Table[string, seq[Pref]] = {
|
|||
label: "Make profile sidebar stick to top",
|
||||
defaultState: true)
|
||||
]
|
||||
}.toTable
|
||||
}.toOrderedTable
|
||||
|
||||
iterator allPrefs*(): Pref =
|
||||
for k, v in prefList:
|
||||
|
|
Loading…
Reference in New Issue