fixed next/prev buttons not showing on some tables

This commit is contained in:
Anch
2022-08-06 14:02:10 +12:00
parent 3326723188
commit 4dd0bab62b
+2 -2
View File
@@ -750,13 +750,13 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame, tablenum)
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
if tablenum + 1 ~= #dataSource[dataID] then
if tablenum ~= #dataSource[dataID] then
getglobal("AtlasLootItemsFrame_NEXT"):Show();
if dataID ~= "FilterList" then
getglobal("AtlasLootItemsFrame_NEXT").tablenum = tablenum + 1;
end
end
if tablenum - 1 ~= 0 then
if tablenum ~= 1 then
getglobal("AtlasLootItemsFrame_PREV"):Show();
if dataID ~= "FilterList" then
getglobal("AtlasLootItemsFrame_PREV").tablenum = tablenum - 1;