Skip to content

Commit

Permalink
Fix Auctionator detection
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed Oct 31, 2021
1 parent 90ea23e commit 670216d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Plugins/Auctionator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -542,16 +542,16 @@ function Skillet:AuctionatorSearch(whichOne)
end
end
end
if Skillet.db.profile.plugins.ATR.useSearchExact and Auctionator.API.v1.MultiSearchExact then
if Atr_SelectPane and Atr_SearchAH then
DA.DEBUG(0, "AuctionatorSearch: shoppingListName= "..tostring(shoppingListName)..", items= "..DA.DUMP1(items))
local BUY_TAB = 3;
Atr_SelectPane(BUY_TAB)
Atr_SearchAH(shoppingListName, items)
elseif Skillet.db.profile.plugins.ATR.useSearchExact and Auctionator.API.v1.MultiSearchExact then
DA.DEBUG(0, "AuctionatorSearch: (exact) addonName= "..tostring(addonName)..", items= "..DA.DUMP1(items))
Auctionator.API.v1.MultiSearchExact(addonName, items)
elseif Auctionator.API.v1.MultiSearch then
DA.DEBUG(0, "AuctionatorSearch: addonName= "..tostring(addonName)..", items= "..DA.DUMP1(items))
Auctionator.API.v1.MultiSearch(addonName, items)
elseif Atr_SelectPane and Atr_SearchAH then
DA.DEBUG(0, "AuctionatorSearch: shoppingListName= "..tostring(shoppingListName)..", items= "..DA.DUMP1(items))
local BUY_TAB = 3;
Atr_SelectPane(BUY_TAB)
Atr_SearchAH(shoppingListName, items)
end
end
2 changes: 1 addition & 1 deletion UI/MainFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ function Skillet:UpdateDetailsWindow(skillIndex)
--
-- Check for Auction House
--
if AuctionFrame and self.auctionOpen and (AuctionatorLoaded or Auctionator.State.Loaded) and self.ATRPlugin and self.db.profile.plugins.ATR.enabled then
if self.auctionOpen and Auctionator and self.ATRPlugin and self.db.profile.plugins.ATR.enabled then
SkilletAuctionatorButton:Show()
else
SkilletAuctionatorButton:Hide()
Expand Down
2 changes: 1 addition & 1 deletion UI/ShoppingList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ function Skillet:DisplayShoppingList(atBank)
if not self.shoppingList then
self.shoppingList = createShoppingListFrame(self)
end
if self.auctionOpen and (AuctionatorLoaded or Auctionator.State.Loaded) and self.ATRPlugin and self.db.profile.plugins.ATR.enabled then
if self.auctionOpen and Auctionator and self.ATRPlugin and self.db.profile.plugins.ATR.enabled then
SkilletSLAuctionatorButton:Show()
else
SkilletSLAuctionatorButton:Hide()
Expand Down

0 comments on commit 670216d

Please sign in to comment.