Skip to content

Commit

Permalink
Better fix when frame is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed Oct 2, 2021
1 parent d659d9a commit ce8da9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Skillet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,7 @@ function Skillet:HideTradeSkillWindow()
local closed -- was anything closed by us?
local frame = self.tradeSkillFrame
if frame and frame:IsVisible() then
self:DisablePauseButton()
self:StopCast()
frame:Hide()
closed = true
Expand All @@ -1481,7 +1482,9 @@ end
function Skillet:HideAllWindows()
--DA.DEBUG(0,"HideAllWindows()")
local closed -- was anything closed?
-- Cancel anything currently being created
--
-- Cancel anything currently being created
--
if self:HideTradeSkillWindow() then
closed = true
end
Expand Down
1 change: 0 additions & 1 deletion UI/MainFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,6 @@ function Skillet:SkilletFrameForceClose()
end
Skillet.processingSpell = nil
Skillet.changingTrade = nil
Skillet:DisablePauseButton()
return self:HideAllWindows()
end

Expand Down

0 comments on commit ce8da9b

Please sign in to comment.