mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -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)
|
function mail.show_mail_menu(playername, sortfield, sortdirection, filter)
|
||||||
local index = mail.selected_idxs.boxtab[playername] or 1
|
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
|
if index == 1 then
|
||||||
mail.show_inbox(playername, sortfield, sortdirection, filter)
|
mail.show_inbox(playername, sortfield, sortdirection, filter)
|
||||||
elseif index == 2 then
|
elseif index == 2 then
|
||||||
|
|
Loading…
Add table
Reference in a new issue