mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-04 21:50:28 -04:00
Simplify sorting and make it more readable (#58)
* Simplify sorting and make it more readable * Make sorter local * Fix sorters dropdowns go back to default * Fix luacheck * Move sorting dropdown values to selected_idxs * Show previous sorters when going back from message/contacts/... * Use shallow copy instead of original table * Open mail interface with previous tab/dropdowns * Rework mail.sort_messages * Combine filter and sort, make filtering safe * Remove checks and logging from sorters --------- Co-authored-by: Athozus <athozus@gmail.com>
This commit is contained in:
parent
0435a0fd21
commit
67bda9a788
6 changed files with 108 additions and 168 deletions
4
init.lua
4
init.lua
|
@ -21,7 +21,9 @@ mail = {
|
|||
to = {},
|
||||
cc = {},
|
||||
bcc = {},
|
||||
boxtab = {}
|
||||
boxtab = {},
|
||||
sortfield = {},
|
||||
sortdirection = {}
|
||||
},
|
||||
|
||||
message_drafts = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue