mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Give a default boxtab value (fix trivial issues)
This commit is contained in:
parent
b2b88c8e54
commit
d43955c6c0
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
function mail.show_mail_menu(playername, sortfield, sortdirection, filter)
|
||||
local index = mail.selected_idxs.boxtab[playername] or 1
|
||||
if not mail.selected_idxs.boxtab[playername] then
|
||||
mail.selected_idxs.boxtab[playername] = 1
|
||||
end
|
||||
if index == 1 then
|
||||
mail.show_inbox(playername, sortfield, sortdirection, filter)
|
||||
elseif index == 2 then
|
||||
|
|
Loading…
Add table
Reference in a new issue