diff --git a/AtlasLoot/Core/AtlasLoot.lua b/AtlasLoot/Core/AtlasLoot.lua index 603777f..00399a4 100644 --- a/AtlasLoot/Core/AtlasLoot.lua +++ b/AtlasLoot/Core/AtlasLoot.lua @@ -532,7 +532,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame) -- Hide the Filter Check-Box AtlasLootFilterCheck:Hide(); - -- + -- Updates AtlasLoot_Lastboss if your in a main loot table if AtlasLoot_Hold == false then AtlasLoot_Lastboss = dataID; end @@ -1116,6 +1116,7 @@ function AtlasLoot_NavButton_OnClick() --Fallback for if the requested loot page is a menu and does not have a .refresh instance AtlasLoot_ShowItemsFrame(this.lootpage, "", "", AtlasFrame); end + -- Lets AtlasLoot_Lastboss be updated after going back to main table AtlasLoot_Hold = false; end diff --git a/AtlasLoot/Core/LootButtons.lua b/AtlasLoot/Core/LootButtons.lua index 5c1500a..36377b9 100644 --- a/AtlasLoot/Core/LootButtons.lua +++ b/AtlasLoot/Core/LootButtons.lua @@ -264,6 +264,7 @@ function AtlasLootItem_OnClick(arg1) AtlasLoot_ShowItemsFrame(dataID, dataSource, AtlasLoot_TableNames[dataID][1], AtlasLootItemsFrame.refresh[4]); end elseif (arg1=="LeftButton") and this.sourcePage ~= nil then + --Holds AtlasLoot_Lastboss so back button works AtlasLoot_Hold = true; AtlasLoot_ShowBossLoot(this.sourcePage, this.sourcePage, pFrame); end