Rewrite setting store

No code change, only format

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
This commit is contained in:
Athozus 2023-09-13 20:04:49 +02:00 committed by GitHub
parent 38c609b765
commit 9bf5b084db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,28 +48,49 @@ mail = {
}, },
settings = { settings = {
chat_notifications = { type = "bool", default = true, group = "notifications", index = 1, chat_notifications = {
label = S("Chat notifications") , tooltip = S("Receive a message in the chat when there is a new message") }, type = "bool", default = true, group = "notifications", index = 1,
onjoin_notifications = { type = "bool", default = true, group = "notifications", index = 2, label = S("Chat notifications"), tooltip = S("Receive a message in the chat when there is a new message")
},
onjoin_notifications = {
type = "bool", default = true, group = "notifications", index = 2,
label = S("On join notifications"), tooltip = S("Receive a message at login when inbox isn't empty") }, label = S("On join notifications"), tooltip = S("Receive a message at login when inbox isn't empty") },
hud_notifications = { type = "bool", default = true, group = "notifications", index = 3, hud_notifications = {
label = S("HUD notifications") , tooltip = S("Show an HUD notification when inbox isn't empty") }, type = "bool", default = true, group = "notifications", index = 3,
sound_notifications = { type = "bool", default = true, group = "notifications", index = 4, label = S("HUD notifications"), tooltip = S("Show an HUD notification when inbox isn't empty")
label = S("Sound notifications") , tooltip = S("Play a sound when there is a new message") }, },
unreadcolorenable = { type = "bool", default = true, group = "message_list", index = 1, sound_notifications = {
label = S("Show unread in different color") }, type = "bool", default = true, group = "notifications", index = 4,
cccolorenable = { type = "bool", default = true, group = "message_list", index = 2, label = S("Sound notifications"), tooltip = S("Play a sound when there is a new message")
label = S("Show CC/BCC in different color") }, },
defaultsortfield = { type = "index", default = 3, group = "message_list", index = 3, unreadcolorenable = {
label = S("Default sorting field") , dataset = { S("From/To"), S("Subject"), S("Date") } }, type = "bool", default = true, group = "message_list", index = 1,
defaultsortdirection = { type = "index", default = 1, group = "message_list", index = 4, label = S("Show unread in different color")
label = S("Default sorting direction") , dataset = { S("Ascending"), S("Descending") } }, },
trash_move_enable = { type = "bool", default = true, group = "other", index = 1, cccolorenable = {
label = S("Move deleted messages to trash") }, type = "bool", default = true, group = "message_list", index = 2,
auto_marking_read = { type = "bool", default = true, group = "other", index = 2, label = S("Show CC/BCC in different color")
label = S("Automatic marking read") , tooltip = S("Mark a message as read when opened") }, },
date_format = { type = "string", default = "%Y-%m-%d %X", group = "other", index = 3, defaultsortfield = {
label = S("Date format"), dataset = {"%Y-%m-%d %X", "%d/%m/%y %X", "%A %d %B %Y %X"}, format = os.date }, type = "index", default = 3, group = "message_list", index = 3,
label = S("Default sorting field"), dataset = { S("From/To"), S("Subject"), S("Date") }
},
defaultsortdirection = {
type = "index", default = 1, group = "message_list", index = 4,
label = S("Default sorting direction"), dataset = { S("Ascending"), S("Descending") }
},
trash_move_enable = {
type = "bool", default = true, group = "other", index = 1,
label = S("Move deleted messages to trash")
},
auto_marking_read = {
type = "bool", default = true, group = "other", index = 2,
label = S("Automatic marking read"), tooltip = S("Mark a message as read when opened")
},
date_format = {
type = "string", default = "%Y-%m-%d %X", group = "other", index = 3, label = S("Date format"),
dataset = {"%Y-%m-%d %X", "%d/%m/%y %X", "%A %d %B %Y %X"}, format = os.date
},
}, },
settings_groups = { settings_groups = {