Skip to content

Commit

Permalink
Memory: If we are restoring an invalid frame - just close the frame
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanaar committed Jun 10, 2020
1 parent b4382f9 commit 93235db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/Memory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ end
local success = true
local f = Chat_GetChatFrame(frameId)

if not db.shown and not db.docked then
FCF_Close(f)
return success
end

if f.minimized then
FCF_MaximizeFrame(f)
end
Expand Down Expand Up @@ -278,7 +283,8 @@ end
local point, relativeTo, relativePoint, xoff, yoff = unpack(v)
f.minFrame:SetPoint(point, relativeTo and _G[relativeTo], relativePoint, xoff, yoff)
end
f.minFrame:SetUserPlaced(true)

f.minFrame:SetUserPlaced(true)
end
return success
end
Expand Down

0 comments on commit 93235db

Please sign in to comment.